Uploaded image for project: 'Slider'
  1. Slider
  2. SLIDER-1171

When enable HDFS HA,{NN_HOST} parsed from fs.defaultFS will return wrong value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Slider 0.91
    • Fix Version/s: Slider 1.0.0
    • Component/s: core
    • Labels:
      None

      Description

      the

      {NN_HOST} defined in appConfig.json,the value will be from fs.defaultFs
      AgentProviderService#getStandardTokenMap
      String nnuri = appConf.get("site.fs.defaultFS");
      tokens.put("$ {NN_URI}
      ", nnuri);
      tokens.put("${NN_HOST}

      ", URI.create(nnuri).getHost());
      eg:
      hdfs://test1:8020/ will return hostname test1

      but when enable HA,
      fs.defaultFS <= hdfs://nn/
      the nn is not a hostname

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fengyongshe fengyongshe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: