You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2011/02/24 03:04:39 UTC

[jira] Updated: (HADOOP-6948) There's no way to remove a property from a Configuration

     [ https://issues.apache.org/jira/browse/HADOOP-6948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Lipcon updated HADOOP-6948:
--------------------------------

    Resolution: Duplicate
        Status: Resolved  (was: Patch Available)

Looks like this got added as part of HADOOP-7001 - there's now an "unset" method.

Resolving as dup

> 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
>            Assignee: Mike Baranczak
>            Priority: Minor
>         Attachments: HADOOP-6948.patch
>
>
> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira