Support Questions

Find answers, ask questions, and share your expertise

Hadoop Namenode is no up

avatar
Explorer

I configured the hadoop, and i check the status using sudo jps

aruna@aruna:~/hadoop-2.7.3/sbin$ sudo jps
[sudo] password for aruna: 
10736 DataNode
16497 Jps
10915 SecondaryNameNode
16453 JobHistoryServer
14903 NodeManager
14734 ResourceManager

But the Namenode is not running.How can i up the Namenode ?

1 ACCEPTED SOLUTION

avatar
Explorer

Thanks @ssathish i remove the Hadoop and start from the begining. Now its working fine.

View solution in original post

2 REPLIES 2

avatar

Hi @Aruna Sameera

If it is not a single node cluster, check the node where namenode has to be started by checking the conf file - hdfs-site.xml(/etc/hadoop/conf/hdfs-site.xml).

Namenode node is provided in the given property in hdfs-site.xml

 <property>
      <name>dfs.namenode.http-address</name>
      <value>Node:port</value>
    </property>
    <property>
      <name>dfs.namenode.https-address</name>
      <value>node:port</value>
    </property>

Once inside the node, find the namenode daemon.

Namenode daemon is present in HADOOP_HOME which can be found in /etc/hadoop/conf/hadoop-env.sh

 # Hadoop home directory
      export HADOOP_HOME=${HADOOP_HOME:-/usr/hdp/current/hadoop-client}
Start the namenode deamon as hdfs user


sudo su --c "/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh start
 namenode" hdfs

If the namenode is still not started, please paste the logs which can be found at /etc/hadoop/conf/hadoop-env.sh

  # Where log files are stored.  $HADOOP_HOME/logs by default.
      export HADOOP_LOG_DIR=/grid/0/log/hdfs/$USER

avatar
Explorer

Thanks @ssathish i remove the Hadoop and start from the begining. Now its working fine.