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

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

    run these commands on terminal

    $ cd ~
    $ mkdir -p mydata/hdfs/namenode
    $ mkdir -p mydata/hdfs/datanode
    

    give permission to both directory 755

    then,

    Add this property in conf/hdfs-site.xml

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

    if not work ,then

    stop-all.sh
    start-all.sh
    

提交回复
热议问题