<legend id='ZYMjd'><style id='ZYMjd'><dir id='ZYMjd'><q id='ZYMjd'></q></dir></style></legend>
  • <small id='ZYMjd'></small><noframes id='ZYMjd'>

      1. <i id='ZYMjd'><tr id='ZYMjd'><dt id='ZYMjd'><q id='ZYMjd'><span id='ZYMjd'><b id='ZYMjd'><form id='ZYMjd'><ins id='ZYMjd'></ins><ul id='ZYMjd'></ul><sub id='ZYMjd'></sub></form><legend id='ZYMjd'></legend><bdo id='ZYMjd'><pre id='ZYMjd'><center id='ZYMjd'></center></pre></bdo></b><th id='ZYMjd'></th></span></q></dt></tr></i><div id='ZYMjd'><tfoot id='ZYMjd'></tfoot><dl id='ZYMjd'><fieldset id='ZYMjd'></fieldset></dl></div>

          <bdo id='ZYMjd'></bdo><ul id='ZYMjd'></ul>

        <tfoot id='ZYMjd'></tfoot>

        HADOOP :: java.lang.ClassNotFoundException: WordCount

        时间:2023-09-27

          <bdo id='2hWwf'></bdo><ul id='2hWwf'></ul>
          1. <i id='2hWwf'><tr id='2hWwf'><dt id='2hWwf'><q id='2hWwf'><span id='2hWwf'><b id='2hWwf'><form id='2hWwf'><ins id='2hWwf'></ins><ul id='2hWwf'></ul><sub id='2hWwf'></sub></form><legend id='2hWwf'></legend><bdo id='2hWwf'><pre id='2hWwf'><center id='2hWwf'></center></pre></bdo></b><th id='2hWwf'></th></span></q></dt></tr></i><div id='2hWwf'><tfoot id='2hWwf'></tfoot><dl id='2hWwf'><fieldset id='2hWwf'></fieldset></dl></div>

                    <tbody id='2hWwf'></tbody>

                  <small id='2hWwf'></small><noframes id='2hWwf'>

                  <legend id='2hWwf'><style id='2hWwf'><dir id='2hWwf'><q id='2hWwf'></q></dir></style></legend><tfoot id='2hWwf'></tfoot>
                • 本文介绍了HADOOP :: java.lang.ClassNotFoundException: WordCount的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在使用 eclipse 导出 map-reduce 程序的 jar 文件.当我使用命令运行 jar 时

                  I am using eclipse to export the jar file of a map-reduce program. When i am run the jar using command

                   hadoop jar hadoop-prog.jar WordCount /home/temp/input /home/temp/output
                  

                  它总是显示错误:

                     Exception in thread "main" java.lang.ClassNotFoundException: WordCount
                      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
                      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
                      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
                      at java.lang.Class.forName0(Native Method)
                      at java.lang.Class.forName(Class.java:247)
                      at org.apache.hadoop.util.RunJar.main(RunJar.java:149)
                  

                  顺便说一句,我从互联网上得到了一个 wordcount 示例 jar 文件,它运行得很好.

                  Btw, I get a sample example jar file of wordcount from internet and it ran very well.

                  我不知道问题出在哪里.

                  I could not figure out where is the problem.

                  推荐答案

                  如果您尝试运行示例中提供的字数,您应该运行:

                  If you're trying to run the wordcount provided in the examples, you should run:

                  hadoop jar hadoop*examples*.jar wordcount /home/temp/input /home/temp/output
                  

                  有关如何在 这个链接.

                  一般来说,如果您正在开发自己的 Map/Reduce 作业,则应包含驱动程序类的完整包名,这样可能会起作用:

                  In general, if you're developing your own Map/Reduce jobs, you should include the full package name of your driver class, so something like this might work:

                  hadoop jar wordcount.jar com.something.WordCount /home/temp/input /home/temp/output
                  

                  这篇关于HADOOP :: java.lang.ClassNotFoundException: WordCount的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:为什么 hadoop 无法识别我的 Map 类? 下一篇:如何通过 API 访问 Hadoop 计数器值?

                  相关文章

                  最新文章

                  1. <legend id='ZREOH'><style id='ZREOH'><dir id='ZREOH'><q id='ZREOH'></q></dir></style></legend>

                    <tfoot id='ZREOH'></tfoot>
                  2. <i id='ZREOH'><tr id='ZREOH'><dt id='ZREOH'><q id='ZREOH'><span id='ZREOH'><b id='ZREOH'><form id='ZREOH'><ins id='ZREOH'></ins><ul id='ZREOH'></ul><sub id='ZREOH'></sub></form><legend id='ZREOH'></legend><bdo id='ZREOH'><pre id='ZREOH'><center id='ZREOH'></center></pre></bdo></b><th id='ZREOH'></th></span></q></dt></tr></i><div id='ZREOH'><tfoot id='ZREOH'></tfoot><dl id='ZREOH'><fieldset id='ZREOH'></fieldset></dl></div>
                    • <bdo id='ZREOH'></bdo><ul id='ZREOH'></ul>

                    <small id='ZREOH'></small><noframes id='ZREOH'>