Batch reindexing failing with NoSuchMethodError when batch has more data


We have been trying to reindex some of the old data. It’s running fine for the batches with 200K records. But batches with 2M records are failing for index-generator MR job with below exception.

2017-03-28 19:41:32,352 FATAL [main] org.apache.hadoop.mapred.YarnChild: Error running child : java.lang.NoSuchMethodError:;[Lcom/google/common/io/FileWriteMode;)Lcom/google/common/io/ByteSink;

at io.druid.segment.IndexMerger.makeIndexFiles(

at io.druid.segment.IndexMerger.merge(

at io.druid.segment.IndexMerger.persist(

at io.druid.indexer.IndexGeneratorJob$IndexGeneratorReducer.persist(

at io.druid.indexer.IndexGeneratorJob$IndexGeneratorReducer.reduce(

at io.druid.indexer.IndexGeneratorJob$IndexGeneratorReducer.reduce(


at org.apache.hadoop.mapred.ReduceTask.runNewReducer(


at org.apache.hadoop.mapred.YarnChild$

at Method)

at Source)


at org.apache.hadoop.mapred.YarnChild.main(

I thought it was a class-path issue but the same config is working fine for smaller batches. Below is the config we are using.

“tuningConfig” : {

“type” : “hadoop”,

“partitionsSpec”: {

“type”: “hashed”,

“targetPartitionSize”: 5000000


“maxRowsInMemory” : 500000,

“jobProperties” : {

“mapreduce.job.user.classpath.first” : “true”,

“mapreduce.job.classloader”: “true”,

“” : “-Xmx2048m -Duser.timezone=UTC”,

“” : “-Xmx2048m -Duser.timezone=UTC”,

“” : “8192”,

“mapreduce.reduce.memory.mb” : “8192”



I have tried reducing targetPartitionSize and maxRowsInMemory but no use. Do we have any limit on number of rows that hadoop Indexer can reindex ? Currently it’s not working for a day for us.

Thanks !


Hi Siva,
there is no such limit. Looks like a class path issue.

I know this is an old post, but for someone landed from Google search…

I had the same issue, and noticed that I had multiple Druid versions at hdfs:///tmp/druid-indexing

This directory is to distribute the Yarn application to each node. The batch job ran fine after removing the directory (at least the No Such Method error is resolved).

hdfs dfs -rm -r /tmp/druid-indexing