hadoop fs -put 失败

使用hadoop 启动之后,无法进行put ,发现datanode是0,

error :
hadoop fs -put could only be replicated to 0 nodes, instead of

找了好久原因,发现 /etc/hosts文件下 映射配置了 2个 host映射。。小菜了。哈哈
127.0.0.1 wei
192.168.85.130 wei

使用netstat -ntpl 查看竟然使用的是 127.0.0.1
去掉 了 hosts文件的 本地配置之后,删除127.0.0.1 之后,重新启动,
datanode 已经启动。

hadoop namenode -format
hadoop start-all.sh

猜你喜欢

转载自a545807638.iteye.com/blog/2286426