hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Kimball (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6317) Serialize the 'final'ness of Configuration keys
Date Tue, 20 Oct 2009 18:11:59 GMT

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

Aaron Kimball commented on HADOOP-6317:
---------------------------------------

Arun,

Let me know if you mean something like this:

{code}
  /**
   * Marks a specific key in the Configuration as final.
   */
  public void makeFinal(String key) {
    if (!finalParameters.contains(key)) {
      finalParameters.add(key);
    }
  }
  
  /**
   * Marks all keys in the Configuration as final.
   */
  public void makeConfigurationFinal() {
    Properties properties = getProps();
    for (Enumeration<String> e = properties.keys(); e.hasMoreElements();) {
      String key = e.nextElement();
      makeFinal(key);
    }
  }
{code}


if so, I'll add this and a unit test to the patch.
- Aaron

> Serialize the 'final'ness of Configuration keys
> -----------------------------------------------
>
>                 Key: HADOOP-6317
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6317
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: conf
>            Reporter: Arun C Murthy
>            Assignee: Aaron Kimball
>             Fix For: 0.22.0
>
>         Attachments: HADOOP-6317.patch
>
>
> Currently Configuration.writeXml doesn't serialize the 'final' attribute. There are some
scenarios where it is useful:
> # TaskTracker should mark the tasks' 'localized' parameters as 'final' 
> # GUI tools

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message