java.lang.RuntimeException: Datum "Name" is not in union ["null","string"]

pig-user | John Smith | 1 year 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

    data types & avrostorage

    pig-user | 1 year ago | John Smith
    java.lang.RuntimeException: Datum "Name" is not in union ["null","string"]
  2. 0

    data types & avrostorage

    pig-user | 1 year ago | John Smith
    java.lang.RuntimeException: Datum "Name" is not in union ["null","string"]
  3. 0

    data types & avrostorage

    pig-user | 1 year ago | John Smith
    java.lang.RuntimeException: Datum "Name" is not in union ["null","string"]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    data types & avrostorage

    pig-user | 1 year ago | John Smith
    java.lang.RuntimeException: Datum "Name" is not in union ["null","string"]
  6. 0

    Avrostorage - datatypes

    Stack Overflow | 1 year ago | heap
    java.lang.Exception: org.apache.avro.file.DataFileWriter$AppendWriteException: java.lang.RuntimeException: Datum "Name" is not in union ["null","string"]

    1 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.RuntimeException

      Datum "Name" is not in union ["null","string"]

      at org.apache.pig.piggybank.storage.avro.PigAvroDatumWriter.resolveUnionSchema()
    2. org.apache.pig
      PigAvroDatumWriter.writeRecord
      1. org.apache.pig.piggybank.storage.avro.PigAvroDatumWriter.resolveUnionSchema(PigAvroDatumWriter.java:128)
      2. org.apache.pig.piggybank.storage.avro.PigAvroDatumWriter.writeUnion(PigAvroDatumWriter.java:111)
      3. org.apache.pig.piggybank.storage.avro.PigAvroDatumWriter.write(PigAvroDatumWriter.java:82)
      4. org.apache.pig.piggybank.storage.avro.PigAvroDatumWriter.writeRecord(PigAvroDatumWriter.java:365)
      4 frames
    3. Apache Avro
      GenericDatumWriter.write
      1. org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:66)
      1 frame
    4. org.apache.pig
      PigAvroDatumWriter.write
      1. org.apache.pig.piggybank.storage.avro.PigAvroDatumWriter.write(PigAvroDatumWriter.java:99)
      1 frame
    5. Apache Avro
      DataFileWriter.append
      1. org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:58)
      2. org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:257)
      2 frames
    6. org.apache.pig
      PigOutputFormat$PigRecordWriter.write
      1. org.apache.pig.piggybank.storage.avro.PigAvroRecordWriter.write(PigAvroRecordWriter.java:49)
      2. org.apache.pig.piggybank.storage.avro.AvroStorage.putNext(AvroStorage.java:808)
      3. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.write(PigOutputFormat.java:136)
      4. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.write(PigOutputFormat.java:95)
      4 frames
    7. Hadoop
      WrappedMapper$Context.write
      1. org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.write(MapTask.java:658)
      2. org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89)
      3. org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.write(WrappedMapper.java:112)
      3 frames
    8. org.apache.pig
      PigGenericMapBase.map
      1. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.collect(PigMapOnly.java:48)
      2. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.runPipeline(PigGenericMapBase.java:281)
      3. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:274)
      4. org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:64)
      4 frames
    9. Hadoop
      LocalJobRunner$Job$MapTaskRunnable.run
      1. org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:146)
      2. org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:787)
      3. org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
      4. org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:243)
      4 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames