java.lang.RuntimeException: Error in configuring object

Apache's JIRA Issue Tracker | Owen O'Malley | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    [HIVE-4494] ORC map columns get class cast exception in some context - ASF JIRA

    apache.org | 1 year ago
    java.lang.RuntimeException: Error in configuring object
  2. 0

    Issues using Parquet Files with Hive

    Google Groups | 3 years ago | Samuel Dehouck
    java.lang.RuntimeException: Error in configuring object
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    To reproduce: {code} create table testarray (a array<string>); load data local inpath '/home/ahsu/test/array.txt' into table testarray; # create partitioned Avro table with one array column create table avroarray partitioned by (y string) row format serde 'org.apache.hadoop.hive.serde2.avro.AvroSerDe' with serdeproperties ('avro.schema.literal'='{"namespace":"test","name":"avroarray","type": "record", "fields": [ { "name":"a", "type":{"type":"array","items":"string"} } ] }') STORED as INPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat'; insert into table avroarray partition(y=1) select * from testarray; # add an int column with a default value of 0 alter table avroarray set serde 'org.apache.hadoop.hive.serde2.avro.AvroSerDe' with serdeproperties('avro.schema.literal'='{"namespace":"test","name":"avroarray","type": "record", "fields": [ {"name":"intfield","type":"int","default":0},{ "name":"a", "type":{"type":"array","items":"string"} } ] }'); # fails with ClassCastException select * from avroarray; {code} The select * fails with: {code} Failed with exception java.io.IOException:java.lang.ClassCastException: org.apache.hadoop.hive.serde2.objectinspector.StandardListObjectInspector cannot be cast to org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector {code}

    Apache's JIRA Issue Tracker | 3 years ago | Anthony Hsu
    java.io.IOException: java.lang.ClassCastException: org.apache.hadoop.hive.serde2.objectinspector.StandardListObjectInspector cannot be cast to org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.apache.hadoop.hive.ql.io.orc.OrcStruct$OrcMapObjectInspector cannot be cast to org.apache.hadoop.hive.serde2.objectinspector.SettableMapObjectInspector

      at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorConverters.getConverter()
    2. Hive Serde
      ObjectInspectorConverters.getConverter
      1. org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorConverters.getConverter(ObjectInspectorConverters.java:144)
      2. org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorConverters$StructConverter.<init>(ObjectInspectorConverters.java:307)
      3. org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorConverters.getConverter(ObjectInspectorConverters.java:138)
      3 frames
    3. Hive Query Language
      ExecMapper.configure
      1. org.apache.hadoop.hive.ql.exec.MapOperator.initObjectInspector(MapOperator.java:270)
      2. org.apache.hadoop.hive.ql.exec.MapOperator.setChildren(MapOperator.java:482)
      3. org.apache.hadoop.hive.ql.exec.ExecMapper.configure(ExecMapper.java:90)
      3 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    5. Hadoop
      ReflectionUtils.newInstance
      1. org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:88)
      2. org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64)
      3. org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
      3 frames
    6. Hadoop
      MapRunner.configure
      1. org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:34)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    8. Hadoop
      ReflectionUtils.newInstance
      1. org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:88)
      2. org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64)
      3. org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
      3 frames
    9. Hadoop
      Child$4.run
      1. org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:431)
      2. org.apache.hadoop.mapred.MapTask.run(MapTask.java:371)
      3. org.apache.hadoop.mapred.Child$4.run(Child.java:255)
      3 frames
    10. Java RT
      Subject.doAs
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAs(Subject.java:396)
      2 frames
    11. Hadoop
      UserGroupInformation.doAs
      1. org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1195)
      1 frame
    12. Hadoop
      Child.main
      1. org.apache.hadoop.mapred.Child.main(Child.java:249)
      1 frame