博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在Linux(Ubuntu)上安装Hadoop
阅读量:2395 次
发布时间:2019-05-10

本文共 978 字,大约阅读时间需要 3 分钟。

    1. 安装 SSH

  

   hadoop使用ssh进行通信,需要为ssh配置免密码登录

   

$ apt-get install ssh$ ssh-keygen -t rsa -P ” -f ~/.ssh/id_rsa$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys$ ssh localhost

 

   验证安装成功:

$ ssh -version

 

   显示结果:

OpenSSH_5.1p1 Debian-6ubuntu2, OpenSSL 0.9.8g 19 Oct 2007Bad escape character ‘rsion’.

 

   验证无密码登录:

$ ssh localhost

 

   显示结果:

Linux ubuntu 2.6.31-14-generic…Last login: Sun Jun  5 15:40:06 2011 from localhost

   

 

   2. 安装JDK

#下载jdk后,先修改权限chenwq@ubuntu:~/Downloads$ chmod 777 jdk-6u27-linux-x64.bin#执行./jdk-6u27-linux-x64.bin

 

 

   3. 安装Hadoop

   下载Hadoop最新版本:  

   下载然后解压

   

$ tar zxvf hadoop-0.20.0.tar.gz

  

 

   4. 创建一个指向Hadoop的安装目录的环境变量:

  

chenwq@ubuntu:/$ export HADOOP_INSTALL=/home/chenwq/Downloads/hadoopchenwq@ubuntu:/$ export PATH=$PATH:$HADOOP_INSTALL/bin

  

  

   5. 检查Hadoop的运行

  

chenwq@ubuntu:/$ hadoop versionHadoop 0.21.0Subversion https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.21 -r 985326Compiled by tomwhite on Tue Aug 17 01:02:28 EDT 2010From source with checksum a1aeb15b4854808d152989ba76f90fac

 

 

  

转载地址:http://siwob.baihongyu.com/

你可能感兴趣的文章
强大的g++呢还是强大的C++?太假了吧
查看>>
C++中的内联函数inline总结
查看>>
C++中的函数指针的一些总结
查看>>
ubuntu下为postgresql添加ODBC驱动过程
查看>>
linux下的su,su -,以及cd,cd - ,cd ~总结
查看>>
CAS锁为什么是乐观锁呢
查看>>
Argument of type '(Foo::)(int,int)' does not match 'void (*)(int,int)'以及静态函数问题
查看>>
今天遇到的postgresql中的备份和恢复
查看>>
正好碰到了C++的函数对象,查各路资料,总结写下来吧
查看>>
今天试vi遇到的“Sorry,the command is not available in this version : syntax on”
查看>>
今天又搞到个libDTL.so is not an ELF file - it has the wrong magic bytes at the start.
查看>>
MinGW和vc6中编译DTL的过程
查看>>
Fedora13下为postgresql添加ODBC驱动过程
查看>>
Bridge模式学习
查看>>
Virtual的一些总结
查看>>
Fedora13上折腾了下ACE
查看>>
tomcat keepAliveTimeout=0问题
查看>>
JDK1.6在SUSE11下问题跳变定时任务失效问题记录
查看>>
400 Bad request 一例
查看>>
linux文件锁定
查看>>