[ 
https://issues.apache.org/jira/browse/HCATALOG-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155581#comment-13155581
 ] 

Francis Liu commented on HCATALOG-128:
--------------------------------------

The postAnalyzeHook() already populates it but populates it incorrectly see 
related issue. Leaving this Jira open to track the concern of making 
StorageHandler "first class" in HCatalog. Resolution to be determined once a 
proposed rework of StorageHandler/StorageDriver architecture comes out.
                
> 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
>              Labels: hcatalog, storage_drivers
>             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