Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Hadoop Namenode is no up

avatar
New Member

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
New Member

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
New Member

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