You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2016/11/10 03:03:58 UTC

[jira] [Commented] (AMBARI-15126) Move NameNode wizard in HA environment fails to update configs correctly when namenode is not running on default port

    [ https://issues.apache.org/jira/browse/AMBARI-15126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15652841#comment-15652841 ] 

Hudson commented on AMBARI-15126:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-branch-2.5 #294 (See [https://builds.apache.org/job/Ambari-branch-2.5/294/])
AMBARI-15126 - Move NameNode wizard in HA environment fails to update (rzang: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=e404eee4498d9031b8ec08e46cacbab353f0f30b])
* (edit) ambari-web/app/controllers/main/service/reassign/step4_controller.js
* (edit) ambari-web/app/views/common/configs/service_configs_by_category_view.js


> Move NameNode wizard in HA environment fails to update configs correctly when namenode is not running on default port
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-15126
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15126
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.1.2
>            Reporter: secfree
>            Assignee: Richard Zang
>            Priority: Critical
>              Labels: namenode
>             Fix For: 2.5.0
>
>         Attachments: AMBARI-15126.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Condition:
> 1. hdfs deploy ha
> 2. "dfs.namenode.http-address" is not set to the default port 50070
> Result:
> 1. Ambari will always substitute configures relative to "nn2"
> 2. The active "Move Namenode" failed and make configure inconsistent, the cluster crashes
> Code location:
> {code:title=ambari-web/app/controllers/main/service/reassign/step4_controller.js|borderStyle=solid}
> if (App.get('isHaEnabled')) {
>       var nameServices = configs['hdfs-site']['dfs.nameservices'];
>       var suffix = (configs['hdfs-site']['dfs.namenode.http-address.' + nameServices + '.nn1'] === sourceHostName + ':50070') ? '.nn1' : '.nn2';
>       configs['hdfs-site']['dfs.namenode.http-address.' + nameServices + suffix] = targetHostName + ':50070';
>       ...
>     }
> {code}



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