You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Sunil B <bs...@gmail.com> on 2015/01/06 06:47:02 UTC

JobHistoryEventHandler failed with AvroTypeException

Hi,

    I am using CDH 5.1.3 i.e. hadoop version 2.3.0

    I am running Hbase row counter map reduce job. All the mappers in
the Job complete successfully. there are no reducers in the job.
However, in the cleanup/stop phase I see the following exception in
the application logs stored in hdfs. Because of this error, there is
no Job information available in the HistoryServer.

    Any pointers would be greatly appreciated.


2015-01-05 14:15:29,397 INFO [Thread-270]
org.apache.hadoop.service.AbstractService: Service
JobHistoryEventHandler failed in state STOPPED; cause:
org.apache.avro.AvroTypeException: Attempt to process a enum when a
item-end was expected.
org.apache.avro.AvroTypeException: Attempt to process a enum when a
item-end was expected.
        at org.apache.avro.io.parsing.Parser.advance(Parser.java:93)
        at org.apache.avro.io.JsonEncoder.writeEnum(JsonEncoder.java:215)
        at org.apache.avro.specific.SpecificDatumWriter.writeEnum(SpecificDatumWriter.java:54)
        at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:67)
        at org.apache.avro.generic.GenericDatumWriter.writeField(GenericDatumWriter.java:114)
        at org.apache.avro.generic.GenericDatumWriter.writeRecord(GenericDatumWriter.java:104)
        at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:66)
        at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:58)
        at org.apache.hadoop.mapreduce.jobhistory.EventWriter.write(EventWriter.java:66)
        at org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler$MetaInfo.writeEvent(JobHistoryEventHandler.java:906)
        at org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler.handleEvent(JobHistoryEventHandler.java:514)
        at org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler.serviceStop(JobHistoryEventHandler.java:335)
        at org.apache.hadoop.service.AbstractService.stop(AbstractService.java:221)
        at org.apache.hadoop.service.ServiceOperations.stop(ServiceOperations.java:52)
        at org.apache.hadoop.service.ServiceOperations.stopQuietly(ServiceOperations.java:80)
        at org.apache.hadoop.service.CompositeService.stop(CompositeService.java:158)
        at org.apache.hadoop.service.CompositeService.serviceStop(CompositeService.java:132)
        at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.serviceStop(MRAppMaster.java:1471)
        at org.apache.hadoop.service.AbstractService.stop(AbstractService.java:221)
        at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.stop(MRAppMaster.java:1085)

- Sunil