Monami Sen
Monami Sen

Reputation: 129

Cloudera Hadoop datanode not starting

I have installed CDH 5 in a single node Ubuntu 14.04 LTS machine, in pseudo distributed mode, using the cloudera guide : http://www.cloudera.com/content/www/en-us/documentation/enterprise/5-3-x/topics/cdh_qs_yarn_pseudo.html

Previously I had installed MRv1. It was running fine. Then I decided to migrate to YARN.

I used the un-installation process of MRv1 mentioned in the tutorial and then continued with the YARN installation. But after I start all services, I see all services starting except my Data node.

Even when I am checking the status of Data node in the web console, it shows number of live nodes as zero.

I have tried to start the Data node separately with the service command but it shows:

"Failed to start Hadoop datanode. Return value: 1".

I have tried formatting the Name node and restarting all services, but with no help. Can you help me understand what has gone wrong?

Upvotes: 1

Views: 1874

Answers (1)

Legato
Legato

Reputation: 1081

  1. Did you look at the namenode and datanode logs? anything interesting there?
  2. Check if there are stale/old datanode processes left over from the previous setup, and kill them. Use 'ps' and not 'jps' as jps has issues and may not show all existing processes. After cleaning up, re-format the namenode and start it up. This solved it for me quite a few times in the past.

Upvotes: 1

Related Questions