Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
Slider 0.91
-
None
Description
the
{NN_HOST} defined in appConfig.json,the value will be from fs.defaultFsAgentProviderService#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