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
- relates to
-
HCATALOG-169 Creating a table with HCatStorageHandler does not correctly store the hcat.isd and hcat.osd names
- Closed