Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8B758CF83 for ; Mon, 4 Jun 2012 22:23:23 +0000 (UTC) Received: (qmail 11633 invoked by uid 500); 4 Jun 2012 22:23:23 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 11572 invoked by uid 500); 4 Jun 2012 22:23:23 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 11564 invoked by uid 500); 4 Jun 2012 22:23:23 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 11561 invoked by uid 99); 4 Jun 2012 22:23:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 22:23:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 1A146140B94 for ; Mon, 4 Jun 2012 22:23:23 +0000 (UTC) Date: Mon, 4 Jun 2012 22:23:23 +0000 (UTC) From: "Prashant Kommireddi (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <1464173779.36622.1338848603109.JavaMail.jiratomcat@issues-vm> In-Reply-To: <211601629.33757.1338813923324.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (PIG-2738) pig.exec.reducers.max has no default value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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