You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Steve Carlin (Jira)" <ji...@apache.org> on 2022/03/08 20:09:00 UTC

[jira] [Created] (HIVE-26015) HBase table with Ranger authentication fails; needs URLEncoding

Steve Carlin created HIVE-26015:
-----------------------------------

             Summary: HBase table with Ranger authentication fails; needs URLEncoding
                 Key: HIVE-26015
                 URL: https://issues.apache.org/jira/browse/HIVE-26015
             Project: Hive
          Issue Type: New Feature
            Reporter: Steve Carlin


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)