hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Krichevskiy <andrei.krichevs...@googlemail.com>
Subject hadoop mapreduce and contrib.lucene.index: ClassNotFoundException: org.apache.lucene.index.IndexDeletionPolicy
Date Thu, 10 Feb 2011 15:53:26 GMT

I tried to run the example org.apache.hadoop.contrib.index.main.UpdateIndex:

hadoop-0.21.0$ ./bin/hadoop  jar hadoop-0.21.0-index.jar   -inputPaths
di/input1/ -outputPath di/output/ -indexPath di/ -numShards 1
-numMapTasks 2 -conf conf/index-config.xml

and got

11/02/10 16:35:52 INFO mapreduce.Job: Task Id :
attempt_201102080006_0067_m_000001_2, Status : FAILED
Error: java.lang.ClassNotFoundException:

I double checked that hadop-0.21.0/lib folder contaings
lucene-core-2.3.1.jar and also tried to pass it as -libjars :

./bin/hadoop  jar hadoop-0.21.0-index.jar  -libjars
lib/lucene-core-2.3.1.jar  -inputPaths di/input1/ -outputPath
di/output/ -indexPath di/ -numShards 1 -numMapTasks 2 -conf

but the result is still the same.

Thanks  in advance,

View raw message