hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From harshira <hr1...@gmail.com>
Subject How to add external jar file while running a hadoop program
Date Fri, 07 May 2010 03:55:15 GMT

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.


Mime
View raw message