[ 
https://issues.apache.org/jira/browse/HADOOP-6948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908907#action_12908907
 ] 

Mike Baranczak commented on HADOOP-6948:
----------------------------------------

Well, "important" is a matter of opinion. 

If you're configuring everything in static XML files (which is the standard way 
to do it), then this is irrelevant. If you want to run jobs with configurations 
created on the fly (which is what I'm doing) then the inability to remove 
properties is kind of annoying. And it seems that this feature should be pretty 
easy to add, since Configuration is basically a wrapper around 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.

Reply via email to