哪个jar不见了?

vzgqcmou  于 2021-05-30  发布在  Hadoop
关注(0)|答案(1)|浏览(379)
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
    at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:169)
    at com.inspire.vote.VoteCountApplication.main(VoteCountApplication.java:23)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 2 more

我尝试了以下url中的代码:https://github.com/hortonworks/hadoop-tutorials/blob/master/community/t09_write_and_run_your_own_mapreduce_java_program_poll_result_analysis.md

hgtggwj0

hgtggwj01#

必须在类路径中插入org.apache.commons.logging-1.1.1.jar文件

相关问题