hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "Hive/HBaseBulkLoad" by JohnSichi
Date Fri, 04 Jun 2010 21:28:29 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "Hive/HBaseBulkLoad" page has been changed by JohnSichi.
http://wiki.apache.org/hadoop/Hive/HBaseBulkLoad?action=diff&rev1=16&rev2=17

--------------------------------------------------

  {{{
  CREATE TABLE new_hbase_table(rowkey string, x int, y int) 
  STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
- WITH SERDEPROPERTIES ("hbase.columns.mapping" = "cf:x,cf:y");
+ WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:x,cf:y");
  
  SET hive.hbase.bulk=true;
  
@@ -161, +161 @@

  {{{
  CREATE EXTERNAL TABLE hbase_transactions(transaction_id string, user_name string, amount
double, ...) 
  STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
- WITH SERDEPROPERTIES ("hbase.columns.mapping" = "cf:user_name,cf:amount,...")
+ WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:user_name,cf:amount,...")
  TBLPROPERTIES("hbase.table.name" = "transactions");
  }}}
  

Mime
View raw message