MuhammadBilalYar/Hadoop-On-Window

Command ( hdfs namenode –format ) is not working

devayan851989 opened this issue · 3 comments

Command ( hdfs namenode –format ) is not working.

Error message:

C:\Spark\hadoop\New folder\hadoop-2.8.0.tar\hadoop-2.8.0\hadoop-2.8.0\bin>hdfs namenode -format
'C:\Spark\hadoop\New' is not recognized as an internal or external command,
operable program or batch file.
'-classpath' is not recognized as an internal or external command,
operable program or batch file.

Could you please help me in troubleshooting this issue

Issue resolved by using points.

1.Space issue in the JDK path causing this issue
Workaround to ignore space ( PROGRA1 ) in the folder
C:\PROGRA
1\Java\jdk1.8.0_152

2.C drive is not recognized
workaround:Remove C:/ from file ( hdfs-site.xml )
/hadoop-2.8.0/data/namenode

Thanks @devayan851989 ! Also in main artical.

eh329 commented

@devayan851989 I do not understand how you solved the issue number 1.
This is my JDK path: C:\Program Files\Java\jdk1.8.0_351 that i saved in hadoop-env.cmd file.
How should i modify this? I would appreciate it, if you answered this. Thanks