Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-26015

CREATE HBase table fails when SERDEPROPERTIES contain special characters

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              scarlin Steve Carlin
              scarlin Steve Carlin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m