Namenode not getting started

前端 未结 21 2098
暗喜
暗喜 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 19:49

    For me the following worked after I changed the directory of the namenode and datanode in hdfs-site.xml

    -- before executing the following steps stop all services with stop-all.sh or in my case I used the stop-dfs.sh to stop the dfs

    1. On the new configured directory, for every node (namenode and datanode), delete every folder/files inside it (in my case a 'current' directory).
    2. delete the Hadoop temporary directory: $rm -rf /tmp/haddop-$USER
    3. format the Namenode: hadoop/bin/hdfs namenode -format
    4. start-dfs.sh

    After I followed those steps my namenode and datanodes were alive using the new configured directory.

提交回复
热议问题