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

HBaseStorageHandler Ignores Case for HBase Table Name

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: HBase Handler
    • Labels:
      None
    • Environment:

      Hortonworks HDP 2.6.0.3, CentOS 7.0, VMWare ESXI

      Description

      Currently the HBaseStorageHandler is lower casing the HBase Table name. This prevent use of the storage handler with existing HBase tables that are not all lower case. Looking at the source this was done intentionally but I haven't found any documentation about why on the wiki. To prevent a change in the default behavior I'd suggest adding an additional property to the serde.

      create 'TestTable', 'd'
      
      create external table `TestTable` (
          id bigint,
          hash String,
          location String,
          name String
          )
          stored by "org.apache.hadoop.hive.hbase.HBaseStorageHandler"
          with serdeproperties (
              "hbase.columns.mapping" = ":key,d:hash,d:location,d:name",
              "hbase.table.name" = "TestTable"
              );
      

        Attachments

          Activity

            People

            • Assignee:
              libing Bing Li
              Reporter:
              Absolutesantaja Shawn Weeks
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: