使用配置单元 (Hadoop) 插入 hbase table

insert into hbase table using hive (Hadoop)

我使用 hive 在 hbase 中成功创建了这个 table :

CREATE TABLE hbase_trades(key string, value string) 
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' 
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf1:val") 
TBLPROPERTIES ("hbase.table.name" = "trades");

现在我想在此 table 中插入值!什么是 HiveQl 查询?

只需插入您的配置单元 table(hbase_trades) ,因为您已经集成了两者,所以可以从 hbase(交易)查询数据 table。希望这有帮助。