Initialization failed for Block pool (Datanode Uuid unassigned) service to IP1:8020 Invalid volume failure config value: 1

时间:2022-09-29 16:23:45

2017-02-27 16:19:44,739 ERROR datanode.DataNode: Initialization failed for Block pool <registering> (Datanode Uuid unassigned) service to IP1:8020 Invalid volume failure  config value: 1
2017-02-27 16:19:44,740 FATAL datanode.DataNode: Initialization failed for Block pool <registering> (Datanode Uuid unassigned) service to IP1:8020. Exiting.
org.apache.hadoop.util.DiskChecker$DiskErrorException: Invalid volume failure  config value: 1
原因是datanode只配置了一个数据目录,

并且hdfs-site.xml的dfs.datanode.failed.volumes.tolerated设置成了1.

修改方法:dfs.datanode.failed.volumes.tolerated 设置成0