Failed to restart Hadoop namenode using cloudera quickstart

+1 vote
Failed to restart Hadoop namenode using cloudera quickstart
Mar 16, 2018 in Big Data Hadoop by Ashish
• 2,650 points
4,305 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,350 points

edited Jun 9, 2020 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
• 58,020 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
• 58,020 points
1,717 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,490 points
7,198 views
0 votes
1 answer

Failed to start namenode in hadoop

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

answered Jan 12, 2019 in Big Data Hadoop by Omkar
• 69,220 points
13,715 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 2,447 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
• 11,380 points
11,078 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
109,078 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,350 points
4,644 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,350 points
1,847 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,350 points
830 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP