Failed to restart Hadoop namenode using cloudera quickstart

+1 vote
Failed to restart Hadoop namenode using cloudera quickstart
Mar 15, 2018 in Big Data Hadoop by Ashish
• 2,650 points
1,794 views

2 answers to this question.

0 votes
Best answer

You can use Cloudera Manager to manage all the services in your Cloudera quickstart VM. Cloudera Manager is the admin tool that provides a nice UI for managing the services. You can check the health status, start, stop, or restart any service with just a few clicks.

By default, Cloudera Manager is disabled when you start the Cloudera quickstart VM. To enable it you need to issue the following command on the terminal:

sudo /home/cloudera/cloudera-manager --force --express

It will take a few minutes so as to start the Cloudera manager for you.

Now, to open Cloudera manager you need to visit the URL as shown in the above screenshot.

To start a specific service click the dropdown icon corresponding the service and then click on start in the dropdown menu as shown in the image below: 

I hope it helps.

answered Mar 19, 2018 by kurt_cobain
• 9,320 points

edited Jun 8 by MD
0 votes

Fixed my own problem

Check status of all services: for service in /etc/init.d/hadoop-hdfs-*; do $service status; done; , output should be:

Hadoop datanode is running [  OK  ]  
Hadoop namenode is dead and pid file exists [FAILED]  
Hadoop secondarynamenode is running  [  OK  ]

To get the namenode running do the following:

  • stop all services: for service in /etc/init.d/hadoop-hdfs-*; do $service stop; done;
  • clear cache from cache directory: sudo rm -rf /var/lib/hadoop-hdfs/cache/*
  • reformat name node: sudo -u hdfs hdfs namenode -format
  • start all services: for service in /etc/init.d/hadoop-hdfs-*; do $service start; done;
  • check status: for service in /etc/init.d/hadoop-hdfs-*; do $service status; done;
answered Aug 7, 2018 by Priyaj
• 57,700 points

Related Questions In Big Data Hadoop

+1 vote
2 answers

How to authenticate username & password while using Connector for Cloudera Hadoop in Tableau?

Hadoop server installed was kerberos enabled server. ...READ MORE

answered Aug 21, 2018 in Big Data Hadoop by Priyaj
• 57,700 points
456 views
0 votes
1 answer

After installing Hadoop on Windows7, NameNode failed to start

You need to install Hadoop winutils to ...READ MORE

answered May 3, 2018 in Big Data Hadoop by Shubham
• 13,450 points
4,434 views
0 votes
1 answer

Failed to start namenode in hadoop

Change your following properties in hdfs-site.xml <property> ...READ MORE

answered Jan 11, 2019 in Big Data Hadoop by Omkar
• 69,030 points
3,411 views
0 votes
1 answer

failed to start the Namenode format in hadoop generation 2

Hi, You can check this out: 1. Delete all ...READ MORE

answered Jul 2, 2019 in Big Data Hadoop by Ria

edited Jul 2, 2019 by Gitika 592 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,950 points
6,124 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyF ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
39,634 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,320 points
2,301 views
0 votes
1 answer
0 votes
1 answer

How to configure secondary namenode in Hadoop 2.x ?

bin/hadoop-daemon.sh start [namenode | secondarynamenode | datanode ...READ MORE

answered Apr 6, 2018 in Big Data Hadoop by kurt_cobain
• 9,320 points
794 views
0 votes
1 answer

How to perform Near-real time analytics using Hadoop?

To perform Near-real time analytics, you have ...READ MORE

answered Apr 24, 2018 in Big Data Hadoop by kurt_cobain
• 9,320 points
136 views