You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Aihua Xu (JIRA)" <ji...@apache.org> on 2018/01/04 20:56:00 UTC
[jira] [Commented] (HIVE-18366) Update HBaseSerDe to use
hbase.mapreduce.hfileoutputformat.table.name instead of hbase.table.name as
the table name property
[ https://issues.apache.org/jira/browse/HIVE-18366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16312014#comment-16312014 ]
Aihua Xu commented on HIVE-18366:
---------------------------------
Attached patch-1: replace the old property name with the new one. Also added a qtest to make sure the right property name is used.
> Update HBaseSerDe to use hbase.mapreduce.hfileoutputformat.table.name instead of hbase.table.name as the table name property
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: HIVE-18366
> URL: https://issues.apache.org/jira/browse/HIVE-18366
> Project: Hive
> Issue Type: Sub-task
> Components: HBase Handler
> Affects Versions: 3.0.0
> Reporter: Aihua Xu
> Assignee: Aihua Xu
> Attachments: HIVE-18366.1.patch
>
>
> HBase 2.0 changes the table name property to hbase.mapreduce.hfileoutputformat.table.name. HiveHFileOutputFormat is using the new property name while HiveHBaseTableOutputFormat is not. If we create the table as follows, HiveHBaseTableOutputFormat is used which still uses the old property hbase.table.name.
> {noformat}
> create table hbase_table2(key int, val string) stored by 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' with serdeproperties ('hbase.columns.mapping' = ':key,cf:val') tblproperties ('hbase.mapreduce.hfileoutputformat.table.name' = 'positive_hbase_handler_bulk')
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)