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