[
https://issues.apache.org/jira/browse/PIG-2738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288961#comment-13288961
]
Prashant Kommireddi commented on PIG-2738:
------------------------------------------
Hi Johannes,
Is pig-default.properties on your classpath? Max reducers is set in this file
and should be loaded into Properties object by default.
{code}
public PigServer(ExecType execType) throws ExecException {
this(execType, PropertiesUtil.loadDefaultProperties());
}
{code}
loadDefaultProperties looks for pig-default.properties
{code}
public static void loadDefaultProperties(Properties properties) {
loadPropertiesFromFile(properties,
System.getProperty("user.home") + "/.pigrc");
loadPropertiesFromClasspath(properties, DEFAULT_PROPERTIES_FILE);
{code}
This should be present in your PIG_HOME/conf directory?
> pig.exec.reducers.max has no default value
> ------------------------------------------
>
> Key: PIG-2738
> URL: https://issues.apache.org/jira/browse/PIG-2738
> Project: Pig
> Issue Type: Bug
> Components: impl
> Affects Versions: 0.10.0
> Environment: Kubuntu 12.04 64Bit
> Reporter: Johannes Schwenk
> Attachments: set-default-for-pig-exec-reducers-max.patch
>
>
> setDefaultsIfUnset in org/apache/pig/impl/util/PropertiesUtil.java does not
> set pig.exec.reducers.max to 999 as documented. As a consequence
> testDefaultPigProperties in org.apache.pig.test.TestPigServer fails with a
> NullPointerException accessing the property.
--
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