You can pass jars using -libjars option.
See http://hadoop.apache.org/common/docs/r0.20.0/mapred_tutorial.html#Usage
And 
http://hadoop.apache.org/common/docs/r0.20.0/commands_manual.html#Generic+Options

-Amareshwari

On 5/7/10 9:25 AM, "harshira" <[email protected]> wrote:



am new to hadoop.

I have a file Wordcount.java which refers hadoop.jar and stanford-parser.jar

I am running the following commnad

javac -classpath .:hadoop-0.20.1-core.jar:stanford-parser.jar -d ep
WordCount.java

jar cvf ep.jar -C ep .

bin/hadoop jar ep.jar WordCount gutenburg gutenburg1

After executing i am getting the following error:

lang.ClassNotFoundException:
edu.stanford.nlp.parser.lexparser.LexicalizedParser

The class is in stanford-parser.jar ...
I guess that different processes doesnt access this jar file . so how can
this be acheived.

Thanks
Harshit
--
View this message in context: 
http://old.nabble.com/How-to-add-external-jar-file-while-running-a-hadoop-program-tp28481933p28481933.html
Sent from the Hadoop core-user mailing list archive at Nabble.com.


Reply via email to