Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6711

Configuration should support list of values

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • conf
    • None

    Description

      Configuration supports 2 operations namely set() and get(). It would be nice to have an inbuild support for lists where there can be multiple values (i.e list of values) assigned to one key. A workaround could be

      // Assume Key be the parameter key and newValue be the value to be added/appended
      Configuration c = new Configuration();
      String value = c.get(Key);
      value = value + " " + newValue
      c.set(Key, value);
      

      One common usecase is that in a production enviroment, some user facing params (e.g mapred.child.java.opts) are set to default values (say for performance reasons). Users themselves might want to add to this list. Doing a set would overwrite the previous values. The above mentioned hack is doable via code but not via command line. Hence we need the framework to support lists.

      Attachments

        Activity

          People

            Unassigned Unassigned
            amar_kamat Amar Kamat
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: