Failed to start NameNode

I've successfully installed hadoop on local by following these steps Step by step hadoop installation on windows 10

Java installed version: 1.8.0_231 Hadoop installed version: Hadoop 3.2.1

But after running command hdfs namenode -format I'm getting following error

Re-format filesystem in Storage Directory root= C:\hadoop-3.2.1\data\namenode; location= null ? (Y or N) y
2019-10-19 12:34:58,809 INFO namenode.FSImage: Allocated new BlockPoolId: BP-1445655329-
2019-10-19 12:34:58,809 INFO common.Storage: Will remove files: []
2019-10-19 12:34:58,812 ERROR namenode.NameNode: Failed to start
    at java.nio.file.Files.setPosixFilePermissions(
    at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(
    at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(
    at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(
    at org.apache.hadoop.hdfs.server.namenode.FSImage.format(
    at org.apache.hadoop.hdfs.server.namenode.NameNode.format(
    at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(
    at org.apache.hadoop.hdfs.server.namenode.NameNode.main(
2019-10-19 12:34:58,819 INFO util.ExitUtil: Exiting with status 1: java.lang.UnsupportedOperationException
2019-10-19 12:34:58,823 INFO namenode.NameNode: SHUTDOWN_MSG:
SHUTDOWN_MSG: Shutting down NameNode at CWT-DST-0051/***.**.***.***

I'm totally new to this, what can be the issue? Thanks in advance


  • I resolved the issue by installing Hadoop 2.9.1, there was namenode issue in Hadoop 3.2.1 version hdfs namenode issue in 3.2.1