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.