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

David Capwell commented on HCATALOG-409:
----------------------------------------

this is my current work around


Method method = MultiOutputFormat.class.getMethod("getJobContext", 
String.class, JobContext.class);
method.setAccessible(true);
JobContext hcatContext = (JobContext) method.invoke(null, "hcat", context);

record.setString("blob", HCatOutputFormat.getTableSchema(hcatContext), 
getClass().getSimpleName());

                
> MultiOutputformat should make getJobContext public
> --------------------------------------------------
>
>                 Key: HCATALOG-409
>                 URL: https://issues.apache.org/jira/browse/HCATALOG-409
>             Project: HCatalog
>          Issue Type: Improvement
>    Affects Versions: 0.4, 0.5, 0.4.1
>            Reporter: David Capwell
>
> private static JobContext getJobContext(String alias, JobContext context)
> this method should be public so a MR job can get the job context for each 
> output.

--
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