java - Hadoop 2.1.0 beta javac compile error -


i'm trying compile example described in http://www.cs.brandeis.edu//~cs147a/lab/hadoop-example-java/ errors :

multifetch.java:107: cannot find symbol symbol  : class text location: class edu.brandeis.cs147a.examples.multifetch.reduce                            outputcollector<text, text> output, 

the command is:

`javac -classpath /opt/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.1.0-beta.jar -d multifetch_classes/ multifetch.java` . 

i think i'm using wrong .jar, tried other .jar files haven't find correct one.

any ideas?

problem solved. used following command compile example:

javac -classpath /opt/hadoop/share/hadoop/common/hadoop-common-2.1.0-beta.jar:/opt/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.1.0-beta.jar:/opt/hadoop/share/hadoop/mapreduce/lib/hadoop-annotations-2.1.0-beta.jar:/opt/hadoop/share/hadoop/common/lib/commons-cli-1.2.jar  -d multifetch_classes/ multifetch.java 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -