Uploaded image for project: 'HCatalog'
  1. HCatalog
  2. HCATALOG-128

Table properties "hcat.isd" and "hcat.osd" not required for tables created using storage handlers.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      Currently end-users are required to specify the input and output storage driver using the table properties when creating tables using storage handlers. This is due to the fact that HCatInputFormat and HCatOutputFormat rely on the properties HCatConstants.HCAT_ISD_CLASS and
      HCatConstants.HCAT_OSD_CLASS to get information about the storage drivers.

      When tables are created using storage handlers, the storage handlers have information about the storage drivers that should be used with the table. Hence this information needs not be supplied in the command line.

      Example:
      create table test_table(key int, value string) STORED BY 'org.apache.hcatalog.hbase.HBaseHCatStorageHandler'"
      "TBLPROPERTIES ('hcat.isd'='org.apache.hcatalog.hbase.HBaseInputStorageDriver', 'hcat.osd'='org.apache.hcatalog.hbase.HBaseOutputStorageDriver','hbase.columns.mapping'=':key,cf1:val')");

      becomes

      create table test_table(key int, value string) STORED BY 'org.apache.hcatalog.hbase.HBaseHCatStorageHandler'"
      "TBLPROPERTIES ('hbase.columns.mapping'=':key,cf1:val')");

      Attachments

        Issue Links

          Activity

            People

              avandana Vandana Ayyalasomayajula
              avandana Vandana Ayyalasomayajula
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: