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

                 Key: HCATALOG-128
                 URL: https://issues.apache.org/jira/browse/HCATALOG-128
             Project: HCatalog
          Issue Type: Improvement
            Reporter: Vandana Ayyalasomayajula
            Assignee: Vandana Ayyalasomayajula
            Priority: Minor
             Fix For: 0.3


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')");



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to