首先通过网上其他人写好的过程进行搭建:
https://www.linuxidc.com/Linux/2016-02/128149.htm
搭建好集群后发现主节点上并没有datanode进程,而且子节点也无法连接到主节点,显示的错误如下:
Retrying connect to server: mini01/192.168.50.131:9000. Already tried 0 time
解决方案:
1、注释/etc/hosts文件首行
2、然后重新启动hadoop即可完成
首先通过网上其他人写好的过程进行搭建:
https://www.linuxidc.com/Linux/2016-02/128149.htm
搭建好集群后发现主节点上并没有datanode进程,而且子节点也无法连接到主节点,显示的错误如下:
Retrying connect to server: mini01/192.168.50.131:9000. Already tried 0 time
解决方案:
1、注释/etc/hosts文件首行
2、然后重新启动hadoop即可完成