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

后端 未结 5 1402
爱一瞬间的悲伤
爱一瞬间的悲伤 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:59

    1) name node directory you should be owner and give chmod 750 appropriately
    2)stop all services
    3)use hadoop namenode -format to format namenode
    4)add this to hdfs-site.xml

    
        dfs.data.dir
        path/to/hadooptmpfolder/dfs/name/data 
        true 
         
         
        dfs.name.dir
        path/to/hadooptmpfolder/dfs/name 
        true 
     
    

    5) to run hadoop namenode -format add export PATH=$PATH:/usr/local/hadoop/bin/ in ~/.bashrc wherever hadoop is unzip add that in path

提交回复
热议问题