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

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Slider 0.91
    • Slider 1.0.0
    • core
    • 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

            Unassigned Unassigned
            fengyongshe Yongshe Feng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: