org.apache.avro.AvroTypeException: Found { "type" : "record", "name" : "Employee", "namespace" : "org.apache.crunch.test", "fields" : [ { "name" : "name", "type" : [ "string", "null" ] }, { "name" : "salary", "type" : "int" }, { "name" : "department", "type" : [ "string", "null" ] } ] }, expecting { "type" : "record", "name" : "Person", "namespace" : "org.apache.crunch.test", "fields" : [ { "name" : "name", "type" : [ "string", "null" ] }, { "name" : "age", "type" : "int" }, { "name" : "siblingnames", "type" : { "type" : "array", "items" : "string" } } ] }

incubator-crunch-user | Micah Whitacre | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Viewing intermediate states for debugging

    incubator-crunch-user | 4 years ago | Micah Whitacre
    org.apache.avro.AvroTypeException: Found { "type" : "record", "name" : "Employee", "namespace" : "org.apache.crunch.test", "fields" : [ { "name" : "name", "type" : [ "string", "null" ] }, { "name" : "salary", "type" : "int" }, { "name" : "department", "type" : [ "string", "null" ] } ] }, expecting { "type" : "record", "name" : "Person", "namespace" : "org.apache.crunch.test", "fields" : [ { "name" : "name", "type" : [ "string", "null" ] }, { "name" : "age", "type" : "int" }, { "name" : "siblingnames", "type" : { "type" : "array", "items" : "string" } } ] }
  2. 0

    Viewing intermediate states for debugging

    incubator-crunch-user | 4 years ago | Micah Whitacre
    org.apache.avro.AvroTypeException: Found { "type" : "record", "name" : "Employee", "namespace" : "org.apache.crunch.test", "fields" : [ { "name" : "name", "type" : [ "string", "null" ] }, { "name" : "salary", "type" : "int" }, { "name" : "department", "type" : [ "string", "null" ] } ] }, expecting { "type" : "record", "name" : "Person", "namespace" : "org.apache.crunch.test", "fields" : [ { "name" : "name", "type" : [ "string", "null" ] }, { "name" : "age", "type" : "int" }, { "name" : "siblingnames", "type" : { "type" : "array", "items" : "string" } } ] }
  3. 0

    GitHub comment 14#5315570

    GitHub | 5 years ago | elibingham
    org.apache.avro.AvroTypeException: Found { SCHEMA OF FOO }, expecting { SCHEMA OF BAR }
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Create a hive table from existing avro folder

    Stack Overflow | 1 year ago | arcee123
    java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: java.io.IOException: org.apache.avro.AvroTypeException: Found Claims.Claims, expecting Claim.avro.Claim
  6. 0

    [Avro-dev] [jira] Created: (AVRO-690) Schema resolution error message for union lacks field name - Grokbase

    grokbase.com | 9 months ago
    org.apache.avro.AvroTypeException: Found "int", expecting ["null","string"]

    1 unregistered visitors

    Root Cause Analysis

    1. org.apache.avro.AvroTypeException

      Found { "type" : "record", "name" : "Employee", "namespace" : "org.apache.crunch.test", "fields" : [ { "name" : "name", "type" : [ "string", "null" ] }, { "name" : "salary", "type" : "int" }, { "name" : "department", "type" : [ "string", "null" ] } ] }, expecting { "type" : "record", "name" : "Person", "namespace" : "org.apache.crunch.test", "fields" : [ { "name" : "name", "type" : [ "string", "null" ] }, { "name" : "age", "type" : "int" }, { "name" : "siblingnames", "type" : { "type" : "array", "items" : "string" } } ] }

      at org.apache.avro.io.ResolvingDecoder.doAction()
    2. Apache Avro
      DataFileStream.next
      1. org.apache.avro.io.ResolvingDecoder.doAction(ResolvingDecoder.java:231)
      2. org.apache.avro.io.parsing.Parser.advance(Parser.java:88)
      3. org.apache.avro.io.ResolvingDecoder.readFieldOrder(ResolvingDecoder.java:127)
      4. org.apache.avro.generic.GenericDatumReader.readRecord(GenericDatumReader.java:169)
      5. org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:144)
      6. org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:135)
      7. org.apache.avro.file.DataFileStream.next(DataFileStream.java:233)
      7 frames
    3. org.apache.crunch
      CrunchRecordReader.nextKeyValue
      1. org.apache.crunch.types.avro.AvroRecordReader.nextKeyValue(AvroRecordReader.java:83)
      2. org.apache.crunch.impl.mr.run.CrunchRecordReader.nextKeyValue(CrunchRecordReader.java:72)
      2 frames
    4. Hadoop
      LocalJobRunner$Job.run
      1. org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:458)
      2. org.apache.hadoop.mapreduce.task.MapContextImpl.nextKeyValue(MapContextImpl.java:76)
      3. org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.nextKeyValue(WrappedMapper.java:85)
      4. org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:139)
      5. org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:645)
      6. org.apache.hadoop.mapred.MapTask.run(MapTask.java:325)
      7. org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:263)
      7 frames