no namenode error in pseudo-mode

后端 未结 8 1401
误落风尘
误落风尘 2021-02-04 08:30

I\'m new to hadoop and is in learning phase. As per Hadoop Definitve guide, i have set up my hadoop in pseudo distributed mode and everything was working fine. I was even able t

相关标签:
8条回答
  • 2021-02-04 08:47

    I have the similar problem, but slightly different.

    Running start-all.sh seams quite well, but jps shows that there is no namenodes and I could not see the list when I run hdfs dfs -ls /.

    My first attempt is to run hadoop namenode -format, then namenode appears but datanode disappears.

    After googling the solution, I run rm -rf /usr/local/hadoop_store/hdfs/datanode/* and restart hadoop, jps shows:

        12912 ResourceManager  
        13391 FsShell  
        13420 Jps  
        13038 NodeManager  
        12733 SecondaryNameNode  
        12432 NameNode  
        12556 DataNode  
    

    Now I can use hadoop commands as usual.

    HTH!

    0 讨论(0)
  • 2021-02-04 08:55

    I had similar issue and this helped

    chown -R hdfs:hadoop /path/to/namenode/date/dir
    
    0 讨论(0)
提交回复
热议问题