- 论坛徽章:
- 71
|
本帖最后由 zhaopingzi 于 2013-12-18 14:36 编辑
- hive> INSERT OVERWRITE TABLE hbase_table_1 SELECT * FROM pokes WHERE foo=86;
- Total MapReduce jobs = 1
- Launching Job 1 out of 1
- Number of reduce tasks is set to 0 since there's no reduce operator
- java.lang.NullPointerException
- at java.util.Hashtable.put(Hashtable.java:542)
- at java.util.Properties.setProperty(Properties.java:161)
- at org.apache.hadoop.conf.Configuration.set(Configuration.java:438)
- at org.apache.hadoop.hive.ql.exec.Utilities.copyTableJobPropertiesToConf(Utilities.java:1840)
- at org.apache.hadoop.hive.ql.exec.FileSinkOperator.checkOutputSpecs(FileSinkOperator.java:947)
- at org.apache.hadoop.hive.ql.io.HiveOutputFormatImpl.checkOutputSpecs(HiveOutputFormatImpl.java:67)
- at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:889)
- at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:850)
- 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:1121)
- at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:850)
- at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:824)
- at org.apache.hadoop.hive.ql.exec.mr.ExecDriver.execute(ExecDriver.java:425)
- at org.apache.hadoop.hive.ql.exec.mr.MapRedTask.execute(MapRedTask.java:144)
- at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:151)
- at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:65)
- at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1414)
- at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1192)
- at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1020)
- at org.apache.hadoop.hive.ql.Driver.run(Driver.java:888)
- at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259)
- at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216)
- at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413)
- at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:781)
- at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)
- at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:614)
- at 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.RunJar.main(RunJar.java:156)
- Job Submission failed with exception 'java.lang.NullPointerException(null)'
- FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
- hive> INSERT OVERWRITE LOCAL DIRECTORY '/tmp/local_out' select * from pokes WHERE foo=98;
- Total MapReduce jobs = 1
- Launching Job 1 out of 1
- Number of reduce tasks is set to 0 since there's no reduce operator
- Starting Job = job_201312181301_0010, Tracking URL = http://mysql3:50030/jobdetails.jsp?jobid=job_201312181301_0010
- Kill Command = /home/hadoop/hadoop/libexec/../bin/hadoop job -kill job_201312181301_0010
- Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 0
- 2013-12-18 14:31:57,117 Stage-1 map = 0%, reduce = 0%
- 2013-12-18 14:32:10,220 Stage-1 map = 100%, reduce = 0%, Cumulative CPU 1.54 sec
- 2013-12-18 14:32:11,652 Stage-1 map = 100%, reduce = 0%, Cumulative CPU 1.54 sec
- 2013-12-18 14:32:16,577 Stage-1 map = 100%, reduce = 100%, Cumulative CPU 1.54 sec
- MapReduce Total cumulative CPU time: 1 seconds 540 msec
- Ended Job = job_201312181301_0010
- Copying data to local directory /tmp/local_out
- Copying data to local directory /tmp/local_out
- MapReduce Jobs Launched:
- Job 0: Map: 1 Cumulative CPU: 1.54 sec HDFS Read: 6018 HDFS Write: 20 SUCCESS
- Total MapReduce CPU Time Spent: 1 seconds 540 msec
- OK
- Time taken: 176.857 seconds
- hive>
复制代码 |
|