hive+hbase整合的时候遇到问题。

发布于 2021-11-15 07:36:57 字数 2681 浏览 781 评论 1

我按照http://www.javabloger.com/article/apache-hadoop-hive-hbase-integration.html这里操作的时候,执行到下一句出现问题,而且并没有插入到hbase里,请问这是为什么?谢谢了!

hive> INSERT OVERWRITE TABLE hbase_table_1 SELECT * FROM pokes WHERE foo=1;

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_201112211741_0005, Tracking URL = http://localhost:50030/jobdetails.jsp?jobid=job_201112211741_0005
Kill Command = /usr/local/hadoop/bin/../bin/hadoop job  -Dmapred.job.tracker=localhost:9001 -kill job_201112211741_0005
Hadoop job information for Stage-0: number of mappers: 1; number of reducers: 0
2011-12-21 19:42:55,442 Stage-0 map = 0%,  reduce = 0%
2011-12-21 19:43:40,312 Stage-0 map = 100%,  reduce = 100%
Ended Job = job_201112211741_0005 with errors
Error during job, obtaining debugging information...
Examining task ID: task_201112211741_0005_m_000002 (and more) from job job_201112211741_0005
Exception in thread "Thread-169" java.lang.RuntimeException: Error while reading from task log url
        at org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor.getErrors(TaskLogProcessor.java:130)
        at org.apache.hadoop.hive.ql.exec.JobDebugger.showJobFailDebugInfo(JobDebugger.java:211)
        at org.apache.hadoop.hive.ql.exec.JobDebugger.run(JobDebugger.java:81)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost.localdomain:50060/tasklog?taskid=attempt_201112211741_0005_m_000000_1&start=-8193
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
        at java.net.URL.openStream(URL.java:1010)
        at org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor.getErrors(TaskLogProcessor.java:120)
        ... 3 more
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
MapReduce Jobs Launched:
Job 0: Map: 1   HDFS Read: 0 HDFS Write: 0 FAIL
Total MapReduce CPU Time Spent: 0 msec

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

奢望 2021-11-16 04:15:45

后来解决问题了吗? 我也遇到同样的问题了。 

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文