hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Namit Jain <nj...@facebook.com>
Subject Re: exception when query on a partitioned table w/o any data
Date Wed, 11 Nov 2009 05:08:28 GMT
Looks like some configuration problem - this query should have failed at compile time, since
it is not referencing any valid partition.
Can you send your hive-site.xml ?



On 11/10/09 8:01 PM, "Min Zhou" <coderplay@gmail.com> wrote:

Hi, guys,


hive> create table pokes(foo string, bar int) partitioned by (pt string);
OK
Time taken: 0.146 seconds
hive> select * from pokes;
Total MapReduce jobs = 1
Number of reduce tasks is set to 0 since there's no reduce operator
Job Submission failed with exception 'java.lang.NullPointerException(null)'
FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.ExecDriver

exception stack from hive.log
java.lang.NullPointerException
        at org.apache.hadoop.hive.ql.exec.ExecDriver.addInputPath(ExecDriver.java:698)
        at org.apache.hadoop.hive.ql.exec.ExecDriver.addInputPaths(ExecDriver.java:753)
        at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:372)
        at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:379)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:285)
        at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
        at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:165)
        at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
        at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)


This should be a pitfall of hive, since if the table is not
partitioned, that query will pass.


Thanks,
Min
--
My research interests are distributed systems, parallel computing and
bytecode based virtual machine.

My profile:
http://www.linkedin.com/in/coderplay
My blog:
http://coderplay.javaeye.com


Mime
View raw message