Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command ( hdfs namenode –format ) is not working #17

Closed
devayan851989 opened this issue Apr 30, 2019 · 4 comments
Closed

Command ( hdfs namenode –format ) is not working #17

devayan851989 opened this issue Apr 30, 2019 · 4 comments

Comments

@devayan851989
Copy link

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

@devayan851989
Copy link
Author

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

@MuhammadBilalYar
Copy link
Owner

Thanks @devayan851989 ! Also in main artical.

@eh329
Copy link

eh329 commented Dec 4, 2022

@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

@Sowmya344
Copy link

Sowmya344 commented Jul 29, 2024

hello. I cant seem to figure out my error:
I can run the HDFS command, but I cant seem to run any other commands after hdfs command.
Example: hdfs namenode -format: my windows cmd says that the internal or external command is not found.
What should I do?
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants