Skip to main content
ManjuN
Silver ⭐️⭐️
Aug 11, 2021 6:52 AM UTC
Question

Lock on /hadoopfs/fs1/hdfs/namenode/in_use.lock acquired by nodename 8360@xxxx-080060091.xxxx.com 2021-08-11 06:30:25,079 WARN namenode.FSNamesystem (FSNamesystem.java:loadFromDisk(716)) - Encountered exception loading fsimage java.io.IOException: N

Lock on /hadoopfs/fs1/hdfs/namenode/in_use.lock acquired by nodename 8360@xxxx-080060091.xxxx.com 2021-08-11 06:30:25,079 WARN namenode.FSNamesystem (FSNamesystem.java:loadFromDisk(716)) - Encountered exception loading fsimage java.io.IOException: NameNode is not formatted.

 

When i tried to format the namenode by using hadoop namenode -format 

getting the below error as,

 

21/08/11 06:45:12 INFO util.ExitUtil: Exiting with status 1: org.apache.hadoop.hdfs.qjournal.client.QuorumException: Could not format one or more JournalNodes. 2 exceptions thrown:
10.80.60.88:8485: Directory /hadoopfs/fs1/hdfs/journalnode/dev-30 is in an inconsistent state: Can't format the storage directory because the current directory is not empty.

 

In hdfs-site.xml:

<property>
<name>dfs.data.dir</name>
<value>/hadoop/hdfs/data</value>
<final>true</final>
</property>
<property>
<name>dfs.name.dir</name>
<value>/hadoopfs/fs1/hdfs/namenode</value>
<final>true</final>
</property>

 

Please help me on above issue.

2 replies

Asok
Gold ⭐️
Gold ⭐️
Aug 12, 2021 9:09 AM UTC

It is worth checking the content under 

/hadoopfs/fs1/hdfs/journalnode/dev-30

Kindly confirm whether there is any unwanted file/dir which might be causing this error.

Translate
VidyaSargur
Community Manager
Community Manager
Aug 19, 2021 10:12 AM UTC

@ManjuN, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.  If you are still experiencing the issue, can you provide the information @Asok  has requested?

Translate
Regards, Vidya Sargur Madabhushi| Senior Community Manager | Was your question answered? Make sure to mark the answer as the Best Answer. If you find a reply useful, say thanks by clicking on the thumbs up button.