You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "secfree (JIRA)" <ji...@apache.org> on 2016/02/22 10:11:18 UTC
[jira] [Updated] (AMBARI-15126) Update wrong namenode config when
moving namenode
[ https://issues.apache.org/jira/browse/AMBARI-15126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
secfree updated AMBARI-15126:
-----------------------------
Description:
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}
was:
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}
> Update wrong namenode config when moving namenode
> -------------------------------------------------
>
> 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
> Priority: Critical
> Labels: namenode
> 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)