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

Configuration.getValByRegex does not substitute for variables

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.6.0
    • None
    • None
    • 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

        1. HADOOP-10402.patch
          2 kB
          Robert Kanter

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment