fengyongshe created SLIDER-1171:
-----------------------------------

             Summary: When enable HDFS HA,{NN_HOST} parsed from fs.defaultFS 
will return wrong value
                 Key: SLIDER-1171
                 URL: https://issues.apache.org/jira/browse/SLIDER-1171
             Project: Slider
          Issue Type: Bug
          Components: core
    Affects Versions: Slider 0.91
            Reporter: fengyongshe
            Priority: Minor


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to