incubator-hcatalog-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ranjit Mathew (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HCATALOG-36) Support Writing Out to Multiple Tables in HCatOutputFormat
Date Mon, 06 Jun 2011 11:45:58 GMT

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

Ranjit Mathew commented on HCATALOG-36:
---------------------------------------

We are not writing one output stream to multiple tables. We're writing to different tables
depending on where the processed data should go. For example, in a map() method
we'll have:

    TableBasedHCatRecordFormat rec1 = new TableBasedHCatRecordFormat("table1", 2);
    rec1.set(0, foo);
    rec1.set(1, bar);
    ctx.write(null, rec1);
[...]
    TableBasedHCatRecordFormat rec2 = new TableBasedHCatRecordFormat("table2", 2);
    rec2.set(0, snafu);
    rec2.set(1, wombat);
    ctx.write(null, rec2);


> Support Writing Out to Multiple Tables in HCatOutputFormat
> ----------------------------------------------------------
>
>                 Key: HCATALOG-36
>                 URL: https://issues.apache.org/jira/browse/HCATALOG-36
>             Project: HCatalog
>          Issue Type: Improvement
>            Reporter: Ranjit Mathew
>         Attachments: multihcat.tgz
>
>
> HCatOutputFormat does not support writing out to multiple tables (or partitions for that
matter).
> Add this support to HCatalog.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message