AnsweredAssumed Answered

Table join issue after upgrade to Hive 0.9.0

Question asked by mlauer on Oct 4, 2012
Latest reply on Oct 18, 2012 by mlauer

After upgrading our test cluster to MapR V2.0 (Hive 0.9.0), we were no longer able to join two tables in Hive.  The following error was output by Hive when trying to join two simple tables below.

PersonCount(Name STRING, Count INT)

PersonState(Name STRING, State STRING)

    hive> SELECT ps.Name, ps.State, pc.Count
        > FROM PersonState ps
        > JOIN PersonCount pc
        > ON ps.Name = pc.Name;
    Total MapReduce jobs = 1
    Launching Job 1 out of 1
    Number of reduce tasks not specified. Estimated from input data size: 1
    In order to change the average load for a reducer (in bytes):
      set hive.exec.reducers.bytes.per.reducer=<number>
    In order to limit the maximum number of reducers:
      set hive.exec.reducers.max=<number>
    In order to set a constant number of reducers:
      set mapred.reduce.tasks=<number>
    Starting Job = job_201209141257_0114, Tracking URL = http://mapr1:50030/jobdetails.jsp?jobid=job_201209141257_0114
    Kill Command = /opt/mapr/hadoop/hadoop-0.20.2/bin/../bin/hadoop job  -Dmapred.job.tracker=maprfs:/// -kill job_201209141257_0114
    Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 1
    2012-10-02 14:43:47,768 Stage-1 map = 0%,  reduce = 0%
    2012-10-02 14:44:14,883 Stage-1 map = 100%,  reduce = 100%
    Ended Job = job_201209141257_0114 with errors
    Error during job, obtaining debugging information...
    Examining task ID: task_201209141257_0114_m_000000 (and more) from job job_201209141257_0114
    Exception in thread "Thread-13" java.lang.IllegalArgumentException: port out of range:-1
            at org.apache.hadoop.hive.ql.exec.JobTrackerURLResolver.getURL(
            at org.apache.hadoop.hive.ql.exec.JobDebugger.showJobFailDebugInfo(
    FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
    MapReduce Jobs Launched:
    Job 0: Map: 1  Reduce: 1   MAPRFS Read: 0 MAPRFS Write: 0 FAIL
    Total MapReduce CPU Time Spent: 0 msec

In addition, when looking at the Job Tracker Logs, we see the following exception for every node.

    java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {"name":"joe","state":"OH"} at at at org.apache.hadoop.mapred.MapTask.runOldMapper( at at org.apache.hadoop.mapred.Child$ at Method) at at at org.apache.hadoop.mapred.Child.main( Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {"name":"joe","state":"OH"} at org.apache.hadoop.hive.ql.exec.MapOperator.process( at ... 8 more Caused by: java.lang.ClassCastException: cannot be cast to at org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive.LazyIntObjectInspector.get( at org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe.serialize( at org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe.serializeStruct( at org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe.serialize( at org.apache.hadoop.hive.ql.exec.ReduceSinkOperator.processOp( at org.apache.hadoop.hive.ql.exec.Operator.process( at org.apache.hadoop.hive.ql.exec.Operator.forward( at org.apache.hadoop.hive.ql.exec.TableScanOperator.processOp( at org.apache.hadoop.hive.ql.exec.Operator.process( at org.apache.hadoop.hive.ql.exec.Operator.forward( at org.apache.hadoop.hive.ql.exec.MapOperator.process(

We rolled back to Hive 0.7.1 and were able to again join tables.  Has anyone experienced similar issues after an upgrade to Hive 0.9.0?