java.lang.IllegalArgumentException: No enum constant dk.netarkivet.harvester.datamodel.JobStatus.null

JIRA | Søren Vejrup Carlsen | 8 months ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Recently, we saw the following scenario: 1. The user setup a cluster of hadoop 2.3., which contains YARN 2.3 and MR 2.3. 2. The user client on a machine that MR 2.2 is installed and in the classpath. Then, when the user submitted a simple wordcount job, he saw the following message: {code} 16:00:41,027 INFO main mapreduce.Job:1345 - map 100% reduce 100% 16:00:41,036 INFO main mapreduce.Job:1356 - Job job_1396468045458_0006 completed successfully 16:02:20,535 WARN main mapreduce.JobRunner:212 - Cannot start job [wordcountJob] java.lang.IllegalArgumentException: No enum constant org.apache.hadoop.mapreduce.JobCounter.MB_MILLIS_REDUCES at java.lang.Enum.valueOf( at org.apache.hadoop.mapreduce.counters.FrameworkCounterGroup.valueOf( at org.apache.hadoop.mapreduce.counters.FrameworkCounterGroup.findCounter( at org.apache.hadoop.mapreduce.counters.AbstractCounters.findCounter( at org.apache.hadoop.mapreduce.TypeConverter.fromYarn( at org.apache.hadoop.mapred.ClientServiceDelegate.getJobCounters( at org.apache.hadoop.mapred.YARNRunner.getJobCounters( at org.apache.hadoop.mapreduce.Job$ at org.apache.hadoop.mapreduce.Job$ at Method) at at at org.apache.hadoop.mapreduce.Job.getCounters( at org.apache.hadoop.mapreduce.Job.monitorAndPrintJob( at org.apache.hadoop.mapreduce.Job.waitForCompletion( . . . {code} The problem is that the wordcount job was running on one or more than one nodes of the YARN cluster, where MR 2.3 libs were installed, and JobCounter.MB_MILLIS_REDUCES is available in the counters. On the other side, due to the classpath setting, the client was likely to run with MR 2.2 libs. After the client retrieved the counters from MR AM, it tried to construct the Counter object with the received counter name. Unfortunately, the enum didn't exist in the client's classpath. Therefore, "No enum constant" exception is thrown here. JobCounter.MB_MILLIS_REDUCES is brought to MR2 via MAPREDUCE-5464 since Hadoop 2.3.

    Apache's JIRA Issue Tracker | 3 years ago | Zhijie Shen
    java.lang.IllegalArgumentException: No enum constant org.apache.hadoop.mapreduce.JobCounter.MB_MILLIS_REDUCES
  2. 0

    Add support to GLONASS sentences

    GitHub | 3 years ago | jajberni
    java.lang.IllegalStateException: Unable to invoke parser constructor
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Reservation price request failure prevents startup

    GitHub | 2 years ago | hectcastro
    java.lang.IllegalArgumentException: No enum constant
  5. 0

    Counter MetricType is not defined in the rest client

    GitHub | 2 years ago | edmundoa
    java.lang.IllegalArgumentException: No enum constant org.graylog2.restclient.lib.metrics.Metric.MetricType.COUNTER

  1. Pierre 1 times, last 5 days ago
  2. stigkj 3 times, last 5 days ago
  3. Axelo 1 times, last 2 months ago
  4. marcbouvierdav 2 times, last 1 month ago
  5. osvzs 2 times, last 2 months ago
21 more registered users
12 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    No enum constant dk.netarkivet.harvester.datamodel.JobStatus.null

    at java.lang.Enum.valueOf()
  2. Java RT
    1. java.lang.Enum.valueOf(
    1 frame
  3. dk.netarkivet.harvester
    1. dk.netarkivet.harvester.datamodel.JobStatus.valueOf(
    1 frame
  4. dk.kb.webdanica
    1. dk.kb.webdanica.interfaces.harvesting.HarvestReport.readHarvestLog(
    2 frames