Home:ALL Converter>Hadoop namenode Format:ExitCodeException exitCode=-1073741515:

Hadoop namenode Format:ExitCodeException exitCode=-1073741515:

Ask Time:2021-01-03T14:51:23         Author:Mueez Khan

Json Formatter

I was trying to install Hadoop and while formatting name node i am getting this error

Re-format filesystem in Storage Directory root= C:\hadoop\data\namenode; location= null ? (Y or N) Y
2021-01-03 11:30:36,360 INFO namenode.FSImage: Allocated new BlockPoolId: BP-801639091-192.168.218.1-1609655436323
2021-01-03 11:30:36,362 INFO common.Storage: Will remove files: []
2021-01-03 11:30:36,453 WARN namenode.NameNode: Encountered exception during format 
ExitCodeException exitCode=-1073741515:
at org.apache.hadoop.util.Shell.runCommand(Shell.java:1008)                                                             at org.apache.hadoop.util.Shell.run(Shell.java:901)
at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:1213)
at org.apache.hadoop.util.Shell.execCommand(Shell.java:1307)
at org.apache.hadoop.util.Shell.execCommand(Shell.java:1289)
at org.apache.hadoop.fs.FileUtil.execCommand(FileUtil.java:1341)
at org.apache.hadoop.fs.FileUtil.execSetPermission(FileUtil.java:1332)
at org.apache.hadoop.fs.FileUtil.setPermission(FileUtil.java:1285)
at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:456)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:591)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:613)
at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:188)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1271)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1713)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1821)
2021-01-03 11:30:36,459 ERROR namenode.NameNode: Failed to start namenode.

I have referred to many different articles but to no avail I have tried to use another version of Hadoop but the problem remains and as I am just starting out , I can't fully understand the problem therefore I need help

these are my configurations

                -For core-site.xml 

<configuration>
 <property>
 <name>fs.defaultFS</name>
 <value>hdfs://localhost:9000</value>
 </property>
</configuration>
    
                - For mapred-site.xml 


<configuration>
 <property>
 <name>mapreduce.framework.name</name>
 <value>yarn</value>
 </property>
</configuration>

                -For yarn-site.xml 

<configuration>
 <property>
 <name>yarn.nodemanager.aux-services</name>
 <value>mapreduce_shuffle</value>
 </property>
 <property>
 <name>yarn.nodemanager.auxservices.mapreduce.shuffle.class</name>
<value>org.apache.hadoop.mapred.ShuffleHandler</value>
 </property>
</configuration>



                -For hdfs-site.xml


<configuration>
 <property>
<name>dfs.replication</name>
 <value>1</value>
 </property>
 <property>
 <name>dfs.namenode.name.dir</name>
 <value>C:\hadoop\data\namenode</value>
 </property>
 <property>
 <name>dfs.datanode.data.dir</name>
 <value>C:\hadoop\data\datanode</value>
 </property>
</configuration>

kindly guide me

Author:Mueez Khan,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/65547359/hadoop-namenode-formatexitcodeexception-exitcode-1073741515
yy