hive中运行 select count(1) from test报错

在cygwin模拟环境下hive中运行 select count(1) from test报错,但在linux环境中不出错



$ hive -e "select count(1) from info";
Logging initialized using configuration in file:/C:/cygwin/usr/local/hive/conf/hive-log4j.properties
Hive history file=/cygwin/usr/local/hive/tmp/hive_job_log_administrator_201310251451_1174374758.txt
Total MapReduce jobs = 1
Launching Job 1 out of 1
Number of reduce tasks determined at compile time: 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_201310251450_0001, Tracking URL = http://localhost:50030/jobdetails.jsp?jobid=job_201310251450_0001
Kill Command = C:\cygwin\usr\local\hadoop\\bin\hadoop.cmd job  -kill job_201310251450_0001
Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 1
2013-10-25 14:51:50,576 Stage-1 map = 100%,  reduce = 100%
Ended Job = job_201310251450_0001 with errors
Error during job, obtaining debugging information...
Job Tracking URL: http://localhost:50030/jobdetails.jsp?jobid=job_201310251450_0001
Examining task ID: task_201310251450_0001_m_000002 (and more) from job job_201310251450_0001
Exception in thread "Thread-21" java.lang.RuntimeException: Error while reading from task log url
        at org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor.getStackTraces(TaskLogProcessor.java:247)
        at org.apache.hadoop.hive.ql.exec.JobDebugger.showJobFailDebugInfo(JobDebugger.java:285)
        at org.apache.hadoop.hive.ql.exec.JobDebugger.run(JobDebugger.java:118)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.FileNotFoundException: http://localhost:50060/tasklog?attemptid=attempt_201310251450_0001_m_000001_0
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
        at java.net.URL.openStream(URL.java:1010)
        at org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor.getStackTraces(TaskLogProcessor.java:198)
        ... 3 more
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
MapReduce Jobs Launched:
Job 0: Map: 1  Reduce: 1   HDFS Read: 0 HDFS Write: 0 FAIL
Total MapReduce CPU Time Spent: 0 msec

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值