【发布时间】:2016-08-02 07:49:11
【问题描述】:
我已经创建了一个 hive 外部表来访问 hbase 表,按照这个HBase-Hive Integration answer。
下面是我创建外部表的 hive 查询:
CREATE EXTERNAL TABLE hive_tweets_by_message_words_key(key INT,d STRING)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,d:d")
TBLPROPERTIES("hbase.table.name" = "tweets_by_message_words_key");
但是当我使用选择查询访问表时,它什么也不返回,我在作业日志中发现如下 azure hdinsight 中提到的
Logging initialized using configuration in file:/C:/apps/dist/hive-0.13.0.2.1.15.1-1234/conf/hive-log4j.properties
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/apps/dist/hadoop-2.4.0.2.1.15.1-1234/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/apps/dist/hbase-0.98.0.2.1.15.1-1234-hadoop2/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
OK
Time taken: 2.032 seconds
【问题讨论】:
标签: azure hadoop hive hbase azure-hdinsight