报错:
replicated to 0 nodes instead of minReplication (=1). There are 1 datanode(s) running and 1 node(s) are excluded in this operation.
解决方案:
这是因为有一个datanode掉线了
方案1:重启机器,重新开启hadoop集群发现掉线的那个节点的日志报错:
WARN org.apache.hadoop.hdfs.server.datanode.DataNode: DatanodeRegistration(10.1.9.130, datanodeUuid=c2e3a84b-7ee9-4639-b71f-9ad52b035607, infoPort=50075, ipcPort=50020, storageInfo=lv=-56;cid=CID-c5d0c1e2-df6

在执行Hive查询任务时遇到错误提示,表示数据节点(replication)未能复制到至少1个节点。问题根源在于一个datanode掉线,其日志显示NoRouteToHostException。解决方案包括重启机器,检查并关闭可能阻止通信的防火墙,例如通过执行'service iptables stop'和'chkconfig iptables off'来禁用iptables服务。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



