The hive script appears Error:java.lang.RuntimeException:Error in configuring object and caused By:java.lang.IndexOutOfBoundsException : Index:9, Size:9

Source: Internet
Author: User

Is the error reported in the reduce phase, the detailed error message is

Zhu Shunhao 19:04:48diagnostic Messages for this Task:Error:java.lang.RuntimeException:Error in configuring Objectat Org.apache . hadoop.util.ReflectionUtils.setJobConf (reflectionutils.java:109) at Org.apache.hadoop.util.ReflectionUtils.setConf (reflectionutils.java:75) at Org.apache.hadoop.util.ReflectionUtils.newInstance (reflectionutils.java:133) at Org.apache.hadoop.mapred.ReduceTask.runOldReducer (reducetask.java:409) at Org.apache.hadoop.mapred.ReduceTask.run (reducetask.java:392) at Org.apache.hadoop.mapred.yarnchild$2.run ( yarnchild.java:168) at java.security.AccessController.doPrivileged (Native Method) at Javax.security.auth.Subject.doAs (subject.java:415) at Org.apache.hadoop.security.UserGroupInformation.doAs ( usergroupinformation.java:1642) at Org.apache.hadoop.mapred.YarnChild.main (yarnchild.java:163) caused by: Java.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43) at Java.lang.reflect.Method.invoke (method.java:606) at org.apache.hadoop.util.ReflectionUtils.setJobConf ( reflectionutils.java:106) ... 9 morecaused by:java.lang.RuntimeException:Reduce operator Initialization Failedat Org.apache.hadoop.hive.ql.exec.mr.ExecReducer.configure (execreducer.java:173) ... Zhu Shunhao 19:05:00caused by:java.lang.indexoutofboundsexception:index:9, Size:9at Java.util.ArrayList.rangeCheck ( arraylist.java:635) at Java.util.ArrayList.get (arraylist.java:411) at Org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.init ( standardstructobjectinspector.java:121) at Org.apache.hadoop.hive.serde2.objectinspector.standardstructobjectinspector.<init> ( STANDARDSTRUCTOBJECTINSPECTOR.JAVA:109) at Org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorFactory.getStandardStructObjectInspector ( objectinspectorfactory.java:283) at Org.apache.hadoop.hive.serde2.objectiNspector. Objectinspectorfactory.getstandardstructobjectinspector (objectinspectorfactory.java:268) at Org.apache.hadoop.hive.ql.exec.LateralViewJoinOperator.initializeOp (lateralviewjoinoperator.java:105) at Org.apache.hadoop.hive.ql.exec.Operator.initialize (operator.java:376) at Org.apache.hadoop.hive.ql.exec.Operator.initialize (operator.java:460) at Org.apache.hadoop.hive.ql.exec.Operator.initializeChildren (operator.java:416) at Org.apache.hadoop.hive.ql.exec.Operator.initializeOp (operator.java:401) at Org.apache.hadoop.hive.ql.exec.UDTFOperator.initializeOp (udtfoperator.java:95) at Org.apache.hadoop.hive.ql.exec.Operator.initialize (operator.java:376) at Org.apache.hadoop.hive.ql.exec.Operator.initialize (operator.java:460) at Org.apache.hadoop.hive.ql.exec.Operator.initializeChildren (operator.java:416) at Org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp (selectoperator.java:65) at Org.apache.hadoop.hive.ql.exec.Operator.initialize (operator.java:376) at Org.apache.hadoop.hive.ql.exec.OperaTor.initialize (operator.java:460) at Org.apache.hadoop.hive.ql.exec.Operator.initializeChildren (Operator.java : 416) at Org.apache.hadoop.hive.ql.exec.Operator.initializeOp (operator.java:401) at Org.apache.hadoop.hive.ql.exec.Operator.initialize (operator.java:376) at Org.apache.hadoop.hive.ql.exec.Operator.initialize (operator.java:460) at Org.apache.hadoop.hive.ql.exec.Operator.initializeChildren (operator.java:416) at Org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp (selectoperator.java:65) at Org.apache.hadoop.hive.ql.exec.Operator.initialize (operator.java:376) at Org.apache.hadoop.hive.ql.exec.Operator.initialize (operator.java:460) at Org.apache.hadoop.hive.ql.exec.Operator.initializeChildren (operator.java:416) at Org.apache.hadoop.hive.ql.exec.GroupByOperator.initializeOp (groupbyoperator.java:427) at Org.apache.hadoop.hive.ql.exec.Operator.initialize (operator.java:376) at Org.apache.hadoop.hive.ql.exec.mr.ExecReducer.configure (execreducer.java:166) ... Morefailed:execution Error, RetuRN Code 2 from Org.apache.hadoop.hive.ql.exec.mr.MapRedTaskMapReduce Jobs launched:stage-stage-1: map:75 reduce:5 Cu Mulative cpu:2318.05 sec HDFs read:5031117214 hdfs write:0 failtotal MapReduce CPU time spent:38 minutes-seconds msec Zhu Shunhao 19:08:09

  

My hive version is hive-0.13.1+cdh5.3.6+397

The script executed is:

Insert INTO table hive_onlinefirstactive_newtest partition (productid,partitiondate) Select Newdata.* from (select MyTable. Clientip,iptocode (mytable. ClientIP, ' 6 ') as Province,iptocode (mytable. ClientIP, ' 7 ') as City,mytable.imei1,mytable.imei2,mytable.plat,mytable.nettype,mytable.myvername,mytable.os, Mytable.clientchannel,hour (Mytable.serverdate), mytable.productid,substring (mytable.serverdate,1,10) as Partitiondate from (Select Uniqueimeiudaf (Concat_ws (' ^ ', serverdate,imei1,imei2,plat,nettype,myvername,os, Productid,clientchannel,clientip)) as R from Hive_onlinepvdata where partitiondate>= ' 2016-04-16 ' and partitiondate <= ' 2016-05-01 ' GROUP by Imei1,productid) TT Lateral view FIRSTACTIVEUDTF (r) mytable) NewData left join Hive_onlinefirst Active_newtest olddata on newdata.imei1 = olddata.imei1 and Newdata.productid = Olddata.productid  

Note that Iptocode is a UDF.

And check it out on the Internet: https://issues.apache.org/jira/browse/HIVE-5771

I understand that this is a hive bug and may not be able to find the UDF jar package when the SQL Optimizer is optimized, the problem is that the hive0.14.0 is fixed

The hive script appears Error:java.lang.RuntimeException:Error in configuring object and caused By:java.lang.IndexOutOfBoundsException : Index:9, Size:9

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.