问题描述:本人在复制文本时遇到的问题,报错显示如下
2021-06-15 00:16:18,889 WARN hdfs.DataStreamer: DataStreamer Exception
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /kb12/hd/cha01/a.txt._COPYING_ could only be written to 0 of the 1 minReplication nodes. There are 0 datanode(s) running and 0 node(s) are excluded in this operation.
具体原因:存储空间为空,使用hadoop namenode -format格式化时格式化了多次造成那么spaceID不一致
[root@singlem ~]# hadoop dfsadmin -report
WARNING: Use of this script to execute dfsadmin is deprecated.
WARNING: Attempting to execute replacement "hdfs dfsadmin" instead.
Configured Capacity: 0 (0 B)
Present Capacity: 0 (0 B)
DFS Remaining: 0 (0 B)
DFS Used: 0 (0 B)
DFS Used%: 0.00%
Replicated Blocks:
Under replicated blocks: 0
Blocks with corrupt replicas: 0
Missing blocks: 0
Missing blocks (with replication factor 1): 0
Low redundancy blocks with highest priority to recover: 0
Pending deletion blocks: 0
Erasure Coded Block Groups:
Low redundancy block groups: 0
Block groups with corrupt internal blocks: 0
Missing block groups: 0
Low redundancy blocks with highest priority to recover: 0
Pending deletion blocks: 0
-------------------------------------------------
解决方法:删除hadoop下的data目录,然后重新格式化就可以了,删之前先停止集群服务。
stop-all.sh
rm -rf /opt/software/hadoop/hadoop313/data
./bin/hdfs namenode -format
start-all.sh
最后
以上就是粗犷丝袜最近收集整理的关于HADOOP运行中的错误汇总的全部内容,更多相关HADOOP运行中内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复