开发者

Error in starting namenode in Hadoop

When I try to format the namenode or even start it I'm getting the below error. What should be done??

$ bin/hadoop namenode -format

Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException:
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoade开发者_开发问答r.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
.  Program will exit.in class:


It seems you did not put the hadoop jar on your classpath, check whether there is a hadoop-version.jar in the lib folder.


bin/hadoop namenode -format

it's the same case of me. i slove the problem.

important thing is blank.

bin/hadoop namenode-format is incorrect bin/hadoop namenode- format is correct.

simple. try again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜