服务器环境配置
1、本机sudo权限;
2、单点配置:
(1)配置/etc/profile的环境;
(2)配置/etc/ssh/ssh_config、/etc/ssh/sshd_config的端口配置;
(3)配置/etc下的hdfs-site.xml、core-site.xml、mapred-site.xml、yarn-site.xml;
(4)单点配置完以后,可以启动跑跑实例,/sbin下:
Hadoop namenode format(格式化一下)
./hadoop-daemon.sh start namenode
3、互连免密登陆;
(1)ssh-keygen生成公钥、秘钥;
(2)cat /home/haoxin/.ssh/id_rsa.pub >>~/.ssh/authorized_keys/;
(3)scp -r ~/ssh/* 主机名@ip:~/ssh/;
(4)域名互通:vim /etc/hosts;