【无标题】

hadoop初始化时出错

[root@namenode hadoop-2.8.0]# hdfs namenode -format
Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.hadoop.conf.Configuration.(Configuration.java:185)
at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:189)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
… 2 more

请问是需要导入commons.logging.LogFactory jar包吗?
如果是,弱弱问一句,该在哪个路径下导入呢?

你可能感兴趣的:(hadoop,jar)