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

Configuration.getValByRegex does not substitute for variables

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.6.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      When using Configuration.getValByRegex(...), variables are not resolved.

      For example:

      <property>
         <name>bar</name>
         <value>woot</value>
      </property>
      <property>
         <name>foo3</name>
         <value>${bar}</value>
      </property>
      

      If you then try to do something like Configuration.getValByRegex(foo.*), it will return a Map containing "foo3=${bar}" instead of "foo3=woot"

        Attachments

          Activity

            People

            • Assignee:
              rkanter Robert Kanter
              Reporter:
              rkanter Robert Kanter
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: