2017-07-25 71 views
-2

我的查询是对于一些配置单元查询,我无法看到o/p?

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

我越来越成功,但无法查看我的O/P 我的O/P为:

就业总数= 1 启动工作1出1件 数减少任务在编译时确定:1 为了改变平均负载为一个减速器(字节):

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

为了限制重的最大数目ducers:

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

为了设置一个常数减速器:

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 
+0

在查询中一切都很好。 '选择txnno,产品从txnrecsbycat限制10'返回任何东西? –

+0

https://electronics.meta.stackexchange.com/questions/3456/are-o-p-and-i-p-acceptable-or-standard-abbreviations-for-output-and-input –

回答

0

由于确定是否有输出(结果之前,其自带),这意味着什么也没有从该查询返回。检查BUCKET数据。