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

Configuration.getPropsWithPrefix no longer does variable substitution

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0, 3.0.0
    • Fix Version/s: 2.10.0, 3.2.0, 3.1.1, 2.9.2, 3.0.3
    • Component/s: None
    • Labels:
      None

      Description

      Before HADOOP-13556, Configuration.getPropsWithPrefix() used the Configuration.get() method to get the value of the variables. After HADOOP-13556, it now uses props.getProperty().

      The difference is that Configuration.get() does deprecation handling and more importantly variable substitution on the value. So if a property has a variable specified with ${variable_name}, it will no longer be expanded when retrieved via getPropsWithPrefix().

      Was this change in behavior intentional? I am using this function in the fix for MAPREDUCE-7069, but we do want variable expansion to happen.

        Attachments

        1. HADOOP-15357.001.patch
          3 kB
          Jim Brennan
        2. HADOOP-15357.002.patch
          3 kB
          Jim Brennan
        3. HADOOP-15357.003.patch
          3 kB
          Jim Brennan

        Issue Links

          Activity

            People

            • Assignee:
              jbrennan Jim Brennan
              Reporter:
              jbrennan Jim Brennan

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment