Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloudera Hadoop Class file for org.apache.hadoop.classification.InterfaceAudience not found

Here is the error I get when trying to compile this WordCount.java file.

$javac -classpath /usr/lib/hadoop/hadoop-common-2.0.0-cdh4.0.1.jar:/usr/lib/hadoop/client/hadoop-mapreduce-client-core-2.0.0-cdh4.0.1.jar -d ~/wordcount /usr/lib/hadoop/wordcount_classes/WordCount.java
/usr/lib/hadoop/hadoop-common-2.0.0-cdh4.0.1.jar(org/apache/hadoop/fs/Path.class): 

warning: Cannot find annotation method 'value()' in type 'LimitedPrivate': class file for org.apache.hadoop.classification.InterfaceAudience not found
1 warning
like image 881
user1663321 Avatar asked Sep 20 '12 15:09

user1663321


1 Answers

Add hadoop-annotations-2.0.0-cdh4.0.1.jar to the classpath

like image 58
Lorand Bendig Avatar answered Oct 05 '22 14:10

Lorand Bendig