You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by Andrei Krichevskiy <an...@googlemail.com> on 2011/02/10 16:53:26 UTC

hadoop mapreduce and contrib.lucene.index: ClassNotFoundException: org.apache.lucene.index.IndexDeletionPolicy

Hi,

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:
org.apache.lucene.index.IndexDeletionPolicy

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
conf/index-config.xml

but the result is still the same.

Thanks  in advance,
Andrey