java.lang.Exception: java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.hadoop.util.Version

GitHub | MohanBunny | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Pig to ElasticSearch Error

    GitHub | 5 months ago | MohanBunny
    java.lang.Exception: java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.hadoop.util.Version

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class org.elasticsearch.hadoop.util.Version

      at org.elasticsearch.hadoop.rest.RestService.createWriter()
    2. Elasticsearch Hadoop
      EsOutputFormat$EsRecordWriter.write
      1. org.elasticsearch.hadoop.rest.RestService.createWriter(RestService.java:372)
      2. org.elasticsearch.hadoop.mr.EsOutputFormat$EsRecordWriter.init(EsOutputFormat.java:173)
      3. org.elasticsearch.hadoop.mr.EsOutputFormat$EsRecordWriter.write(EsOutputFormat.java:149)
      3 frames
    3. org.elasticsearch.hadoop
      EsStorage.putNext
      1. org.elasticsearch.hadoop.pig.EsStorage.putNext(EsStorage.java:192)
      1 frame
    4. org.apache.pig
      PigOutputFormat$PigRecordWriter.write
      1. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.write(PigOutputFormat.java:136)
      2. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.write(PigOutputFormat.java:95)
      2 frames
    5. Hadoop
      WrappedReducer$Context.write
      1. org.apache.hadoop.mapred.ReduceTask$NewTrackingRecordWriter.write(ReduceTask.java:558)
      2. org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89)
      3. org.apache.hadoop.mapreduce.lib.reduce.WrappedReducer$Context.write(WrappedReducer.java:105)
      3 frames
    6. org.apache.pig
      PigGenericMapReduce$Reduce.reduce
      1. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapReduce$Reduce.runPipeline(PigGenericMapReduce.java:477)
      2. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapReduce$Reduce.processOnePackageOutput(PigGenericMapReduce.java:442)
      3. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapReduce$Reduce.reduce(PigGenericMapReduce.java:422)
      4. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapReduce$Reduce.reduce(PigGenericMapReduce.java:269)
      4 frames
    7. Hadoop
      LocalJobRunner$Job$ReduceTaskRunnable.run
      1. org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:171)
      2. org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:627)
      3. org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:389)
      4. org.apache.hadoop.mapred.LocalJobRunner$Job$ReduceTaskRunnable.run(LocalJobRunner.java:319)
      4 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames