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