You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2022/03/22 21:40:00 UTC
[jira] [Resolved] (HIVE-26015) CREATE HBase table fails when SERDEPROPERTIES contain special characters
[ https://issues.apache.org/jira/browse/HIVE-26015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stamatis Zampetakis resolved HIVE-26015.
----------------------------------------
Resolution: Fixed
Fixed in https://github.com/apache/hive/commit/2bdec6f63d217cb42720fd7fe5cee804a2e5803c, Thanks for the PR [~scarlin]!
> CREATE HBase table fails when SERDEPROPERTIES contain special characters
> ------------------------------------------------------------------------
>
> Key: HIVE-26015
> URL: https://issues.apache.org/jira/browse/HIVE-26015
> Project: Hive
> Issue Type: New Feature
> Reporter: Steve Carlin
> Assignee: Steve Carlin
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0-alpha-2
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> A Create table statement is failing for HBase going through Ranger.
> The stack trace shows a problem with the getURIForAuth method.
> The table is creating someting like this:
> CREATE EXTERNAL TABLE `mytesttbl`( `field1` string COMMENT 'from deserializer',`field2` string COMMENT 'from deserializer',`field3` string COMMENT 'from deserializer',`field4` string COMMENT 'from deserializer',`field5` string COMMENT 'from deserializer',`field6` int COMMENT 'from deserializer', `field7` string COMMENT 'from deserializer', `field8` int COMMENT 'from deserializer') ROW FORMAT SERDE 'org.apache.hadoop.hive.hbase.HBaseSerDe' STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ( 'hbase.columns.mapping'=':key,field1,field2,field3,field4,field5#b,field6,cf:field7#b','serialization.format'='1') TBLPROPERTIES ( 'hbase.table.name'='mytesttbl');
> Essentially, the SERDEPROPERTIES contain hash tabs which is causing a problem when creating a URI
--
This message was sent by Atlassian Jira
(v8.20.1#820001)