pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prashant Kommireddi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-2738) pig.exec.reducers.max has no default value
Date Mon, 04 Jun 2012 22:23:23 GMT

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

    public PigServer(ExecType execType) throws ExecException {
        this(execType, PropertiesUtil.loadDefaultProperties());

loadDefaultProperties looks for pig-default.properties 
    public static void loadDefaultProperties(Properties properties) {
                System.getProperty("user.home") + "/.pigrc");
        loadPropertiesFromClasspath(properties, DEFAULT_PROPERTIES_FILE);

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


View raw message