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 in Big Data Hadoop by nitinrawat895
• 10,760 points
53 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 by ravikiran
• 4,580 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 by Namisha

Related Questions In Big Data Hadoop

+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
14,497 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,760 points
60 views
0 votes
2 answers

start-dfs.sh command is not starting Hadoop JobTracker & TaskTracker

On which version of hadoop do you ...READ MORE

answered Jul 24 in Big Data Hadoop by Lokesh Singh
811 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,280 points
78 views
0 votes
1 answer
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,280 points
264 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
335 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 in Big Data Hadoop by ravikiran
• 4,580 points
85 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 in Big Data Hadoop by ravikiran
• 4,580 points
94 views