【问题标题】:For some of the hive queries I wasn't able to see the o/p?对于一些蜂巢查询,我看不到 o/p?
【发布时间】:2017-07-25 16:00:45
【问题描述】:

我的查询是

SELECT txnno, product FROM txnrecsbycat TABLESAMPLE(BUCKET 2 OUT OF 10) ORDER BY txnno;

我获得成功但无法查看我的 O/p 我的 o/p 是:

工作总数 = 1 启动作业 1 / 1 编译时确定的reduce任务数:1 为了改变reducer的平均负载(以字节为单位):

  set hive.exec.reducers.bytes.per.reducer=<number>

为了限制reducer的最大数量:

  set hive.exec.reducers.max=<number>

为了设置一个恒定数量的reducer:

  set mapreduce.job.reduces=<number>

Starting Job = job_1500975292039_0005, Tracking URL = http://localhost:8088/proxy/application_1500975292039_0005/
Kill Command = /usr/lib/hadoop-2.2.0/bin/hadoop job  -kill job_1500975292039_0005
Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 1
2017-07-25 20:26:48,640 Stage-1 map = 0%,  reduce = 0%
2017-07-25 20:27:05,179 Stage-1 map = 100%,  reduce = 0%, Cumulative CPU 3.61 sec
2017-07-25 20:27:20,461 Stage-1 map = 100%,  reduce = 100%, Cumulative CPU 5.47 sec
MapReduce Total cumulative CPU time: 5 seconds 470 msec
Ended Job = job_1500975292039_0005
MapReduce Jobs Launched:
Job 0: Map: 1  Reduce: 1   Cumulative CPU: 5.47 sec   HDFS Read: 2498 HDFS Write: 0 SUCCESS
Total MapReduce CPU Time Spent: 5 seconds 470 msec
OK
Time taken: 51.819 seconds

【问题讨论】:

标签: hadoop hive mapreduce hiveql hadoop-partitioning


【解决方案1】:

由于输出中存在 OK(在结果之前),这意味着该查询没有返回任何内容。检查 BUCKET 数据。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-20
    • 1970-01-01
    相关资源
    最近更新 更多