hadoop/hdfs/name is in an inconsistent state: storage directory(hadoop/hdfs/data/) does not exist or is not accessible

后端 未结 5 1401
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-19 03:21

I have tried all the different solutions provided at stackoverflow on this topic, but of no help Asking again with the specific log and the details

Any help is apprecia

5条回答
  •  难免孤独
    2021-02-19 03:48

    Removed the "file:" from the hdfs-site.xml file

    [WRONG HDFS-SITE.XML]

      
      dfs.namenode.name.dir
      file:/home/hduser/mydata/hdfs/namenode
      
      
      dfs.datanode.data.dir
      file:/home/hduser/mydata/hdfs/datanode
      
    

    [CORRECT HDFS-SITE.XML]

      
      dfs.namenode.name.dir
      /home/hduser/mydata/hdfs/namenode
      
    
    
      
      dfs.datanode.data.dir
      /home/hduser/mydata/hdfs/datanode
      
    

    Thanks to Erik for the help.

提交回复
热议问题