hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tianyin Xu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9693) Trim the user config of dfs.ha.namenode.id
Date Mon, 25 Jan 2016 10:12:39 GMT

     [ https://issues.apache.org/jira/browse/HDFS-9693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tianyin Xu updated HDFS-9693:
-----------------------------
    Summary: Trim the user config of dfs.ha.namenode.id  (was: Trim the user config of {{dfs.ha.namenode.id}})

> Trim the user config of dfs.ha.namenode.id
> ------------------------------------------
>
>                 Key: HDFS-9693
>                 URL: https://issues.apache.org/jira/browse/HDFS-9693
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: ha
>    Affects Versions: 2.7.1
>            Reporter: Tianyin Xu
>            Priority: Minor
>
> In {{hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/HAUtil.java}},
we trim the config value of parameter {{dfs.ha.namenode.id}} in one place but not the other.

> {code}
>   public static String getNameNodeId(Configuration conf, String nsId) {
>     String namenodeId = conf.getTrimmed(DFS_HA_NAMENODE_ID_KEY);
>     ...  
> {code}
> {code}
>   public static List<String> getNameNodeIdOfOtherNodes(Configuration conf, String
nsId) {
>     ...
>     String myNNId = conf.get(DFSConfigKeys.DFS_HA_NAMENODE_ID_KEY);
>     ...
> {code}
> The latter one would cause problem if the user's configs contains extra space.



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

Mime
View raw message