hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Na Yang (JIRA)" <>
Subject [jira] [Created] (HIVE-7745) NullPointerException when turn on hive.merge.mapfiles and hive.merge.mapredfiles [Spark Branch]
Date Sat, 16 Aug 2014 01:20:18 GMT
Na Yang created HIVE-7745:

             Summary: NullPointerException when turn on hive.merge.mapfiles and hive.merge.mapredfiles
[Spark Branch]
                 Key: HIVE-7745
             Project: Hive
          Issue Type: Bug
          Components: Spark
            Reporter: Na Yang
            Assignee: Na Yang

When the hive.merge.mapfiles and hive.merge.mapredfiles are turned on, it throws NullPointerException
when I do the following queries: 

create table inputTbl1(key string, val string) stored as textfile;
create table outputTbl1(key string, values bigint) stored as rcfile;

load data local inpath '../../data/files/T1.txt' into table inputTbl1;

insert overwrite table outputTbl1
select key, count(1) as values from inputTbl1 group by key 
union all
select * FROM (
  SELECT key, 1 as values from inputTbl1 
  SELECT key, 2 as values from inputTbl1
) a

If the hive.merge.mapfiles and hive.merge.mapredfiles are turned off, I do not see any error.

Here is the stack trace:
2014-08-16 01:32:26,849 ERROR [main]: ql.Driver ( - FAILED:
NullPointerException null
        at org.apache.hadoop.hive.ql.optimizer.GenMapRedUtils.createMoveTask(
        at org.apache.hadoop.hive.ql.parse.spark.GenSparkUtils.processFileSink(
        at org.apache.hadoop.hive.ql.parse.spark.SparkCompiler.generateTaskTree(
        at org.apache.hadoop.hive.ql.parse.TaskCompiler.compile(
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(
        at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(
        at org.apache.hadoop.hive.ql.parse.ExplainSemanticAnalyzer.analyzeInternal(
        at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(
        at org.apache.hadoop.hive.ql.Driver.compile(
        at org.apache.hadoop.hive.ql.Driver.compile(
        at org.apache.hadoop.hive.ql.Driver.compileInternal(
        at org.apache.hadoop.hive.ql.Driver.runInternal(
        at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(
        at org.apache.hadoop.hive.cli.CliDriver.processCmd(
        at org.apache.hadoop.hive.cli.CliDriver.processLine(
        at org.apache.hadoop.hive.cli.CliDriver.executeDriver(
        at org.apache.hadoop.hive.cli.CliDriver.main(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.hadoop.util.RunJar.main(

This message was sent by Atlassian JIRA

View raw message