no namenode error in pseudo-mode

后端 未结 8 1403
误落风尘
误落风尘 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!

提交回复
热议问题