1. 程式人生 > >hadoop java wordcount

hadoop java wordcount

java.lang.ClassNotFoundException: 自己編譯WordCount編譯通過執行報錯

 

由於自己的類在hadoopdemo的包裡,所以執行的時候要寫hadoopdemo.wordcount

 

一開始maven建立專案一直報錯,沒想到就這三個jar就完全搞定了,怪自己學藝不精。

/usr/local/hadoop-2.4.0/share/hadoop/common/hadoop-common-2.4.0.jar:
/usr/local/hadoop-2.4.0/share/hadoop/common/lib/commons-cli-1.2.jar:
/usr/local/hadoop-2.4.0/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.4.0.jar
--------------------- 
作者:xp152167 
來源:CSDN 
原文:https://blog.csdn.net/xp152167/article/details/52485754 
版權宣告:本文為博主原創文章,轉載請附上博文連結!