Hadoop: error: Cannot lock storage /app/hadoop/tmp/dfs/name. The directory is already locked.

0 votes
Why this error came up and how can I solve it? Can anyone help me out with this?
Aug 5 in Big Data Hadoop by Jina
13 views

1 answer to this question.

0 votes

Hi,

Check your dfs.name.dir and dfs.data.dir path in hdfs-site.xml.

Or what can you do is: stop all the running Hadoop process and start again:

./stop-all.sh

./start-all.sh

If the error exists even after the above step, then stop all the process, format the NameNode and start again.

./stop-all.sh/

hadoop namenode -format

./start-all.sh
answered Aug 5 by Gitika
• 25,300 points

Related Questions In Big Data Hadoop

0 votes
1 answer
0 votes
1 answer

Hadoop: What is the difference between `hadoop dfs` and `hadoop fs`?

You can find the definition here: $HADOOP_HOME/bin/hadoop ... elif [ ...READ MORE

answered Nov 6, 2018 in Big Data Hadoop by Omkar
• 67,290 points
242 views
0 votes
1 answer
0 votes
1 answer
0 votes
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,510 points
2,404 views
0 votes
10 answers

hadoop fs -put command?

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

answered Dec 7, 2018 in Big Data Hadoop by Aditya
12,232 views
0 votes
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,240 points
898 views
0 votes
1 answer