Taiwan Hadoop Forum
http://forum.hadoop.tw/

HIVE整合HBASE後 查詢語言問題
http://forum.hadoop.tw/viewtopic.php?f=4&t=38304
1 頁 (共 1 頁)

發表人:  GGG [ 2016-02-02, 15:30 ]
文章主題 :  HIVE整合HBASE後 查詢語言問題

把HIVE整合HBASE表後

以下是我們整合HBASE表後在HIVE使用SQL語法

代碼:
select * from hive_scores


代碼:
Allen   {"":104034548}   {"LP":82,"TQM":83}
Willy   {"":104034551}   {"LP":80,"TQM":81}
Time taken: 0.183 seconds, Fetched: 2 row(s)

亦即我們的表。

但進行sql語法的where查詢

代碼:
select * from hive_scores where "course:LP" > 81 ;


跑出以下的結果

代碼:
Total 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_1454386224624_0017, Tracking URL = http://Master:8088/proxy/application_1454386224624_0017/
Kill Command = /usr/local/hadoop/bin/hadoop job  -kill job_1454386224624_0017
Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 0
2016-02-02 15:16:57,132 Stage-1 map = 0%,  reduce = 0%
2016-02-02 15:17:03,422 Stage-1 map = 100%,  reduce = 0%, Cumulative CPU 1.5 sec
MapReduce Total cumulative CPU time: 1 seconds 500 msec
Ended Job = job_1454386224624_0017
MapReduce Jobs Launched:
Job 0: Map: 1   Cumulative CPU: 1.5 sec   HDFS Read: 244 HDFS Write: 0 SUCCESS
Total MapReduce CPU Time Spent: 1 seconds 500 msec
OK
Time taken: 18.736 seconds


並沒有進行任何篩選的動作
因此想請教大大 若想進行where語法查詢
正確的指令怎麼輸入

跪求解,指點迷津QAQ

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/