#put: File /user/jc/input/myFile.txt.COPYING could only be replicated to 0 nodes instead of minReplication (=1). There are 2 datanode(s) running and 2 node(s) are excluded in this operation.的解决方法
1.看看用户登录的所有虚拟机的防火墙是否关闭(一定要全部关闭,否则执行不了put命令)
2.看主节点虚拟机的hadoop安装目录下的dfs/name/current/VERSION目录里的clusterID的值是否与你的hadoop02和hadoop03和…(他们里面会多一个data文件夹与name文件夹同级)里的一致,不一致要改过来(data文件夹里也有同样的VERSION路径,将VERSION文件夹里的clusterID也同样该为一致)。
put命令here are 2 datanode(s) running and 2 node(s) are excluded in this operation.的解决方法
于 2022-11-07 16:58:50 首次发布