hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Bodkin (Commented) (JIRA)" <>
Subject [jira] [Commented] (HIVE-2639) Allow Configuring Input Formats for Hive
Date Fri, 09 Dec 2011 10:36:41 GMT


Ron Bodkin commented on HIVE-2639:

I tried to use a storage handler to allow passing configuration data down, but the limitations
are too severe (e.g., you can't have a partitioned table with a custom storage handler).

Here's a way I'd like to see Hive's default storage handler implement this:

public class DefaultStorageHandler {
    public static final String INPUTFORMAT = "inputformat.";

    public void configureTableJobProperties(TableDesc tableDesc, Map<String, String>
jobProperties) {
        for (Map.Entry entry : tableDesc.getProperties().entrySet()) {
            String key = entry.getKey().toString();
            if (key.startsWith(INPUTFORMAT)) {
                jobProperties.put(key.substring(INPUTFORMAT.length()), entry.getValue().toString());


> Allow Configuring Input Formats for Hive
> ----------------------------------------
>                 Key: HIVE-2639
>                 URL:
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Ron Bodkin
> If you want to use a parameterizable input format in Hive, you currently have to either
use set to pass a configuration to everything (on each appropriate query). It would be nice
to have a kind of property in hive that's associated with the input format. 
> The best option for this today seems to be the storage handler mechanism, but that seems
a bit heavyweight for this purpose (requiring you to also specify an output format and a serde).

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message