欢迎来到天天文库
浏览记录
ID:34987698
大小:86.50 KB
页数:14页
时间:2019-03-15
《hadoop安装前准备工作》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1.在安装好地Ubuntu系统下添加具有sudo权限地用户.root@nodeA:~#sudoadduserzyxAddinguser`zyx'...Addingnewgroup`zyx'(1001)...Addingnewuser`zyx'(1001)withgroup`zyx'...Creatinghomedirectory`/home/zyx'...Copyingfilesfrom`/etc/skel'...EnternewUNIXpassword:RetypenewUNIXpassword:passwd:passwordupdatedsuccessfullyCha
2、ngingtheuserinformationforzyxEnterthenewvalue,orpressENTERforthedefault文档来自于网络搜索FullName[]:^Cadduser:`/usr/bin/chfnzyx'exitedfromsignal2.Exiting.文档来自于网络搜索root@nodeA:~#root@nodeA:~#sudousermod-Gadmin-azyxroot@nodeA:~#2.建立SSH无密码登陆(1)namenode上实现无密码登陆本机zyx@nodeA:~$ssh-keygen-tdsa-P''-f~/.ssh/
3、id_dsa文档来自于网络搜索Generatingpublic/privatedsakeypair.Createddirectory'/home/zyx/.ssh'.Youridentificationhasbeensavedin/home/zyx/.ssh/id_dsa.文档来自于网络搜索Yourpublickeyhasbeensavedin/home/zyx/.ssh/id_dsa.pub.文档来自于网络搜索Thekeyfingerprintis:65:2e:e0:df:2e:61:a5:19:6a:ab:0e:38:45:a9:6a:2bzyx@nodeA文档来自于
4、网络搜索Thekey'srandomartimageis:+--[DSA1024]----+
5、
6、
7、.
8、
9、o.o
10、
11、o...+.
12、
13、....S=.
14、
15、.oo.=o
16、
17、+...o...
18、
19、E......
20、
21、...o...
22、+-----------------+zyx@nodeA:~$cat~/.ssh/id_dsa.pub>>~/.ssh/authorized_keys文档来自于网络搜索zyx@nodeA:~$(2)实现namenode无密码登陆其他datanodehadoop@nodeB:~$scphadoop@nodea:/home/hadoop/.ssh/id_dsa.
23、pub/home/hadoop文档来自于网络搜索hadoop@nodea'spassword:id_dsa.pub100%6020.6KB/s00:00文档来自于网络搜索hadoop@nodeB:~$catid_dsa.pub>>.ssh/authorized_keys文档来自于网络搜索hadoop@nodeB:~$sudoufwdisable1.复制JDK(jdk-6u20-linux-i586.bin)文件到linux利用F-SecureSSHFileTransferTrial工具,直接拖拽2.jdk-6u20-linux-i586.bin地安装和配置(1)安装zyx
24、@nodeA:~$lsExamplesjdkzyx@nodeA:~$cdjdkzyx@nodeA:~/jdk$lsjdk-6u20-linux-i586.binzyx@nodeA:~/jdk$chmoda+xjdk*zyx@nodeA:~/jdk$./jdk*接下来显示许可协议,然后选择yes,然后按Enter键,安装结束.zyx@nodeA:~/jdk$lsjdk1.6.0_20jdk-6u20-linux-i586.bin(2)配置用root@nodeA:/home/zyx#vi.bashrc打开bashrc,然后在最后加入下面几行:文档来自于网络搜索exportJA
25、VA_HOME=/home/zyx/jdk/jdk1.6.0_20exportJRE_HOME=/home/zyx/jdk/jdk1.6.0_20/jreexportCLASS_PATH=$CLASSPATH:$JAVA_HOME/lib:$JRE_HOME/lib文档来自于网络搜索exportPATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH:$HOMR/bin文档来自于网络搜索3.Hadoop地安装下载地址:http://labs.renren.com/apache-mirror/hadoop/
此文档下载收益归作者所有