1
could only be replicated to 0 nodes instead of minReplication (=1)
运行hive时出现这个错误,在hadoop上运行jps,发现datanode没有启动起来,需要启动datanode
2
FATAL org.apache.hadoop.hdfs.server.datanode.DataNode: Initialization failed for Block pool <registering> (Datanode Uuid unassigned) service to master.whr.com/192.10.200.81:9000. Exiting.
datanode日志报的错误,namenode和datanode的clusterID不匹配。
处理方式:编辑cluster id,让它们一样
查看etc/hadoop/hdfs-site.xml里 datanode和namenode对应的目录
rm -rf /tmp/hadoop-root/*
#namenode
nano HADOOP_FILE_SYSTEM/namenode/current/VERSION
#datanode
nano HADOOP_FILE_SYSTEM/datanode/current/VERSION
然后重启hadoop。
出现原因是hdfs namenode -format重新格式化更改了namenode的clusterID