Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 91381 invoked from network); 13 Sep 2010 17:56:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Sep 2010 17:56:57 -0000 Received: (qmail 32241 invoked by uid 500); 13 Sep 2010 17:56:57 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 32209 invoked by uid 500); 13 Sep 2010 17:56:56 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 32201 invoked by uid 99); 13 Sep 2010 17:56:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 17:56:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 17:56:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8DHuWNf001619 for ; Mon, 13 Sep 2010 17:56:33 GMT Message-ID: <24448951.156971284400592863.JavaMail.jira@thor> Date: Mon, 13 Sep 2010 13:56:32 -0400 (EDT) From: "Doug Cutting (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6948) There's no way to remove a property from a Configuration In-Reply-To: <22338888.106151284080432857.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908883#action_12908883 ] Doug Cutting commented on HADOOP-6948: -------------------------------------- Is there an important use-case for removing properties? > There's no way to remove a property from a Configuration > -------------------------------------------------------- > > Key: HADOOP-6948 > URL: https://issues.apache.org/jira/browse/HADOOP-6948 > Project: Hadoop Common > Issue Type: Improvement > Components: conf > Affects Versions: 0.20.2, 0.21.0 > Environment: all > Reporter: Mike Baranczak > Priority: Minor > > The Configuration class has a lot of methods for setting properties, but it's impossible to remove a property once it's set. Trying to set it to null results in a NullPointerException, since java.util.Properties doesn't allow null values. When building a Configuration programmatically, this can be a problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.