How can I resolve NoSuchMethodError? #4

metacret opened this Issue Jun 13, 2012 · 4 comments


None yet

2 participants



I am trying to use wonderdog for bulk-indexing with elasticsearch. I am in trouble with the following error message:

java.lang.NoSuchMethodError: org.elasticsearch.client.IndicesAdminClient.prepareCreate(Ljava/lang/String;)Lorg/elasticsearch/client/action/admin/indices/create/CreateIndexRequestBuilder;
at com.infochimps.elasticsearch.ElasticSearchOutputFormat$ElasticSearchRecordWriter.initialize_index(
at com.infochimps.elasticsearch.ElasticSearchOutputFormat$ElasticSearchRecordWriter.(
at com.infochimps.elasticsearch.ElasticSearchOutputFormat.getRecordWriter(
at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.(
at org.apache.hadoop.mapred.MapTask.runNewMapper(
at org.apache.hadoop.mapred.LocalJobRunner$
12/06/13 17:05:23 INFO mapred.JobClient: Job complete: job_local_0001
12/06/13 17:05:23 INFO mapred.JobClient: Counters: 0

Thank you!

@metacret metacret closed this Jun 13, 2012

Running into the same, and see that @rjurney did so as well ( - but haven't seen a solution... Any idea what's going on here? I'm on trunk, by the way (wonderdog, elasticsearch, and pig - hadoop is 0.20.205).


Don't rely on the wonderdog package. Just copy and paste wonderdog source codes into your project. Then it will work perfectly. I don't know why the wonderdog package didn't work but that's why I closed this issue two months ago.


What do you mean by copying the source code into the project ? I'm not sure I understand fully what you mean by that ?


I resolved it that way; #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment