【发布时间】: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
【问题讨论】:
-
查询中的一切看起来都不错。
select txnno, product FROM txnrecsbycat limit 10会返回任何东西吗?
标签: hadoop hive mapreduce hiveql hadoop-partitioning