0

In Knox config file in Ambari we have defined:

<url>http://{{namenode_host}}:{{namenode_http_port}}/webhdfs</url>

The problem is we have 2 namenodes, one active and one passive for high availability. Our active namenode01 failed so namenode02 became active.

This caused problems for a lot scripts as they were hardcoded to point to namenode01. So we used a command to failover namenode02 back to namenode01 using a terminal, not Ambari.

Now, the macro {{namenode_host}} is defined as namenode02 and not namenode01.

So, where is {{namenode_host}} defined?

Or, do we need to failover namenode01 to namenode02, then failover again to namenode01 using Ambari to update the macro?

If we need to failover the namenode using Ambari, I'm assuming we need to select the "Restart" option? There isn't a direct failover command.

4

1 に答える 1

0

ここで問題を参照してください:

https://issues.apache.org/jira/browse/AMBARI-12763

これは、Knox の HA モードをサポートするために Ambari にコミットされました。ただし、まだ場所を探している場合は、パッチで編集されたファイルを見てください。そのファイルは、マクロが設定されている場所です。ただし、ローカルマシンで見つける必要があります。

次のようなものでなければなりませんparams_linux.py

于 2015-09-04T18:46:42.263 に答える