Namenode not getting started

前端 未结 21 2132
暗喜
暗喜 2020-11-28 19:32

I was using Hadoop in a pseudo-distributed mode and everything was working fine. But then I had to restart my computer because of some reason. And now when I am trying to st

21条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 20:04

    Add hadoop.tmp.dir property in core-site.xml

    
      
        fs.defaultFS
        hdfs://localhost:9000
      
      
        hadoop.tmp.dir
        /home/yourname/hadoop/tmp/hadoop-${user.name}
      
    
    

    and format hdfs (hadoop 2.7.1):

    $ hdfs namenode -format
    

    The default value in core-default.xml is /tmp/hadoop-${user.name}, which will be deleted after reboot.

提交回复
热议问题