pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-4414) TezConfiguration.TEZ_SITE_XML is made private in tez-0.7
Date Fri, 13 Feb 2015 00:25:13 GMT

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

Jeff Zhang commented on PIG-4414:
---------------------------------

bq. As far as I see Configuration.addResource() only takes String, Path, URL or InputStream.
How is the above going to work?
Looks like Configuration.addResource(Configuration) only available in hadoop-2.5, then I think
it would be better to make changes on tez-side

> TezConfiguration.TEZ_SITE_XML is made private in tez-0.7
> --------------------------------------------------------
>
>                 Key: PIG-4414
>                 URL: https://issues.apache.org/jira/browse/PIG-4414
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Jeff Zhang
>            Assignee: Daniel Dai
>             Fix For: 0.15.0
>
>
> TezConfiguration.TEZ_SITE_XML is made private in tez-0.7, and it is supposed to be private.

> But pig use this field
> {code}
>    @Override
>     public JobConf getExecConf(Properties properties) throws ExecException {
>         JobConf jc = super.getExecConf(properties);
>         jc.addResource(TezConfiguration.TEZ_SITE_XML);
>         return jc;
>     }
> {code}
> If pig folks feel OK, the following piece of code also do the same thing, and is encouraged
to do like this 
> {code}
> jc.addResource(new TezConfiguration());
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message