Namenode is not getting started

0 votes

I am currently running Hadoop in a Pseudo Distributed Mode. I just restarted my system and after that, I tried to start the Hadoop Namenode and Datanode. I have used both the commands.

bin/start-all.sh
bin/start-dfs.sh

None of these seems to work. Help me out and please let me know what was the error.

Jul 22, 2019 in Big Data Hadoop by nitinrawat895
• 10,920 points
134 views

2 answers to this question.

0 votes

hadoop.tmp.dir in the core-site.xml is defaulted to /tmp/hadoop-${user.name} which is cleaned after every reboot. Change this to some other directory which doesn't get cleaned on reboot

answered Jul 22, 2019 by ravikiran
• 4,600 points
0 votes

Hi,

You can do one thing,

first delete all contents from temporary folder: rm -Rf <tmp dir>

format the namenode: bin/hadoop namenode -format

start all processes again:bin/start-all.sh

answered Aug 5, 2019 by Namisha

Related Questions In Big Data Hadoop

0 votes
1 answer

In my hadoop namenode is not starting

Hi@Aman, There may be many reasons behind this. ...READ MORE

answered Jul 22 in Big Data Hadoop by MD
• 41,820 points
31 views
+1 vote
1 answer
0 votes
11 answers

What is the default Namenode port of HDFS. Is it 8020 or 9000 or 50070?

8020/9000 hadoop namenode metadata port number. or ...READ MORE

answered Dec 31, 2018 in Big Data Hadoop by SM
25,782 views
0 votes
1 answer

Avro - Getting Started

Refer to the example given here. It's ...READ MORE

answered Apr 4, 2018 in Big Data Hadoop by nitinrawat895
• 10,920 points
101 views
0 votes
1 answer

Is there a way to rebalance single Datanode in Hadoop.

Currently Hadoop does not automatically do this. ...READ MORE

answered Apr 15, 2018 in Big Data Hadoop by kurt_cobain
• 9,310 points
120 views
0 votes
2 answers
0 votes
1 answer

Namenode not getting started

You need to delete the contents of the ...READ MORE

answered Apr 23, 2018 in Big Data Hadoop by kurt_cobain
• 9,310 points
846 views
0 votes
1 answer

Can DataNode and NameNode be commodity hardware?

DataNodes are the commodity hardware only as ...READ MORE

answered Dec 18, 2018 in Big Data Hadoop by Neha
• 6,280 points
659 views
0 votes
1 answer

What is Kafka? what is its importance in Big-Data?

Apache Kafka is a tool used in ...READ MORE

answered Apr 11, 2019 in Big Data Hadoop by ravikiran
• 4,600 points
385 views
0 votes
1 answer

Is it possible to run Apache Spark without Hadoop?

Though Spark and Hadoop were the frameworks designed ...READ MORE

answered May 2, 2019 in Big Data Hadoop by ravikiran
• 4,600 points
216 views