[email protected]:/usr/lib/hadoop/wordcount_classes$ 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 /usr/lib/hadoop/wordcount_classes /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
/usr/lib/hadoop/wordcount_classes/WordCount.java:14: error: error while writing Map: could not create parent directories
public static class Map extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> {
^
1 error
1 warning
這個錯誤是什麼?我無法編譯這個wordcount.java文件!不能編譯WordCount.java
人們一直在告訴我正確設置我的java類路徑。有人會對我如何解決這個問題有任何評論嗎?請幫忙!謝謝!
你可以發佈一些代碼...有明顯的錯誤。設置classpath:http://docs.oracle.com/javase/tutorial/essential/environment/paths.html – RossC