You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Jeff Zhang (JIRA)" <ji...@apache.org> on 2015/02/11 13:14:11 UTC
[jira] [Updated] (PIG-4414) TezConfiguration.TEZ_SITE_XML is made
private in tez-0.7
[ https://issues.apache.org/jira/browse/PIG-4414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Zhang updated PIG-4414:
----------------------------
Description:
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}
was:
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 guys 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}
> 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
>
> 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)