欢迎来到天天文库
浏览记录
ID:21349568
大小:1.82 MB
页数:238页
时间:2018-10-21
《hadoop完全分布式安装步骤》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、浪曦www.langsinsoft.com本机windows的ip192.168.3.2台式机的ip192.168.3.9笔记本的linuxmasterip3.3台机机两个linuxslave1slave2ip3.1003.101浪曦www.langsinsoft.com上传工具保证FTP开启[root@localhost~]#/etc/init.d/vsftpdrestart关闭vsftpd:[失败]为vsftpd启动vsftpd:[确定][root@localhost~]#[root@localhostvsftpd]#lsftpuse
2、rsuser_listvsftpd.confvsftpd_conf_migrate.sh[root@localhostvsftpd]#ftpusersuser_list这两个文件中的root用户注释掉然后重启[root@localhostvsftpd]#/etc/init.d/vsftpdrestart浪曦www.langsinsoft.com配置主机名[root@localhost~]#vim/etc/sysconfig/networkNETWORKING=yesNETWORKING_IPV6=noHOSTNAME=master[roo
3、t@localhost~]#hostnamemaster三台主机都配置主机名[root@localhost~]#vim/etc/sysconfig/networkNETWORKING=yesNETWORKING_IPV6=noHOSTNAME=slave1[root@localhost~]#hostnameslave1[root@localhost~]#vim/etc/sysconfig/networkNETWORKING=yesNETWORKING_IPV6=noHOSTNAME=slave2[root@localhost~]#host
4、nameslave2关闭防火墙和selinux[root@master~]#vim/etc/sysconfig/selinux#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:浪曦www.langsinsoft.com#enforcing-SELinuxsecuritypolicyisenforced.#permissive-SELinuxprintswarningsinsteadofenforcing.#disabled
5、-SELinuxisfullydisabled.SELINUX=disabled#SELINUXTYPE=typeofpolicyinuse.Possiblevaluesare:#targeted-Onlytargetednetworkdaemonsareprotected.#strict-FullSELinuxprotection.SELINUXTYPE=targeted[root@master~]#serviceiptablesstatus表格:filterChainINPUT(policyACCEPT)numtargetprotop
6、tsourcedestinationChainFORWARD(policyACCEPT)numtargetprotoptsourcedestinationChainOUTPUT(policyACCEPT)numtargetprotoptsourcedestination域名解析使得master和slave1slave2连接对方三台都要做[root@master~]#vim/etc/hosts#Donotremovethefollowingline,orvariousprograms#thatrequirenetworkfunctional
7、itywillfail.127.0.0.1localhost.localdomainlocalhost浪曦www.langsinsoft.com::1localhost6.localdomain6localhost6192.168.3.3master192.168.3.101slave2192.168.3.100slave1安装jdk在三个机器上创建文件夹[root@master~]#mkdirinstaller[root@master~]#上传jdkE:开发工具jdk-6u27-linux-i586-rpm.bin到installer
8、目录[root@masterinstaller]#ll总计78876-rw-r--r--1rootroot8068021912-0112:50jdk-6u27-linux-i586-rpm.b
此文档下载收益归作者所有