hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanisha Koneru (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12486) GetConf to get journalnodeslist
Date Wed, 20 Sep 2017 00:33:00 GMT

    [ https://issues.apache.org/jira/browse/HDFS-12486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16172542#comment-16172542

Hanisha Koneru commented on HDFS-12486:

Thanks for the improvement, [~bharatviswa].

A few comments:

- Even though {{DFS_NAMENODE_SHARED_EDITS_DIR_KEY}} is included in the Namenode specific keys,
it should not be. It should have been a nameservice specific key. But changing that now would
break backward-compatibility. So can you log a warning if the configuration has shared edits
set as a namenode specific key like _dfs.namenode.shared.edits.dir.ns1.nn1_.

- In _DFSUtil#getJournalNodeAddresses_, there should be a check whether the shared edits value
is a URI or not. For example, 
      is valid
*qjournal://journal1:9820;qjournal://journal2:9820;qjournal://journal3:9820*           is
not valid

- The below code snippet can be optimized using URI. The code in  [[Util#getAddressesList]]
does the same thing as below using URIs.
String[] journalList = journal.trim().replace("qjournal://", "").split(";");
for (String value : journalList) {
  if (value.contains("/")) {
    String[] addr = value.split("/");
  } else {

- In _TestGetConf#testGetJournalNodes_, can we have valid shared.edit.dir values for testing.
For example, *qjournal://nn0:9820;qjournal://nn1:9820/ns1* is not a valid value for shared.edits.dir.
It should instead be something like *qjournal://jn0:9820;jn1:9820;jn2:9820/ns1*

> GetConf to get journalnodeslist
> -------------------------------
>                 Key: HDFS-12486
>                 URL: https://issues.apache.org/jira/browse/HDFS-12486
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>         Attachments: HDFS-12486.01.patch, HDFS-12486.02.patch, HDFS-12486.03.patch
> GetConf command to list journal nodes.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message