Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1382118EB6 for ; Thu, 29 Oct 2015 18:15:29 +0000 (UTC) Received: (qmail 29274 invoked by uid 500); 29 Oct 2015 18:15:28 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 28940 invoked by uid 500); 29 Oct 2015 18:15:28 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 28745 invoked by uid 99); 29 Oct 2015 18:15:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2015 18:15:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E58A92C1F60 for ; Thu, 29 Oct 2015 18:15:27 +0000 (UTC) Date: Thu, 29 Oct 2015 18:15:27 +0000 (UTC) From: "Jeff Sposetti (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-13507) Ability to change host names for a stopped cluster MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-13507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeff Sposetti updated AMBARI-13507: ----------------------------------- Description: 1) If Kerberos security is enabled, please disable it using Ambari Web > Admin > Kerberos > Disable Kerberos button. 2) Stop all pending commands/jobs. 3) Stop all services. 4) Backup Ambari db. 5) Stop ambari-server and all ambari-agents. 6) Create *.json file with host names changes. Example: host_names_changes.json {code} { "cluster1" : { "c6400.ambari.apache.org" : "c6410.ambari.apache.org", "c6401.ambari.apache.org" : "c6411.ambari.apache.org", .... } } {code} where *cluster1* is cluster name and *"c6400.ambari.apache.org" : "c6410.ambari.apache.org"* are host names pair in the format "current_host_name" : "new_host_name". 7) Execute this command on the ambari-server host: {code} ambari-server update-host-names host_names_changes.json {code} 8) After successful end of this action, please update host names for all nodes, according to changes that you added to *.json file. 9) If host name was changed for node with ambari-server, then you should update it for every ambari-agent in /etc/ambari-agent/conf/ambari-agent.ini, field "hostname" for server. 10) Start ambari-server and all ambari-agents. 11) Start services. was: 1) If Kerberos security is enabled, please disable it using Ambari Web > Admin > Kerberos > Disable Kerberos button. 2) Stop all pending commands/jobs. 3) Stop all services. 4) Backup Ambari db. 5) Stop ambari-server and all ambari-agents. 6) Create *.json file with host names changes. Example: host_names_changes.json {code} { "cluster1" : { "c6400.ambari.apache.org" : "c6410.ambari.apache.org", "c6401.ambari.apache.org" : "c6411.ambari.apache.org", .... } } {code} where: - *cluster1* is cluster name. - *"c6400.ambari.apache.org" : "c6410.ambari.apache.org"* are host names pair means ( "current_host_name" : "new_host_name" ). 7) Execute this command on the ambari-server host: {code} ambari-server update-host-names host_names_changes.json {code} 8) After successful end of this action, please update host names for all nodes, according to changes that you added to *.json file. 9) If host name was changed for node with ambari-server, then you should update it for every ambari-agent in /etc/ambari-agent/conf/ambari-agent.ini, field "hostname" for server. 10) Start ambari-server and all ambari-agents. 11) Start services. > Ability to change host names for a stopped cluster > -------------------------------------------------- > > Key: AMBARI-13507 > URL: https://issues.apache.org/jira/browse/AMBARI-13507 > Project: Ambari > Issue Type: Task > Components: ambari-server > Affects Versions: 2.1.3 > Reporter: Vitaly Brodetskyi > Assignee: Vitaly Brodetskyi > Priority: Critical > Fix For: 2.1.3 > > Attachments: AMBARI-13507.patch > > > 1) If Kerberos security is enabled, please disable it using Ambari Web > Admin > Kerberos > Disable Kerberos button. > 2) Stop all pending commands/jobs. > 3) Stop all services. > 4) Backup Ambari db. > 5) Stop ambari-server and all ambari-agents. > 6) Create *.json file with host names changes. Example: host_names_changes.json > {code} > { > "cluster1" : { > "c6400.ambari.apache.org" : "c6410.ambari.apache.org", > "c6401.ambari.apache.org" : "c6411.ambari.apache.org", > .... > } > } > {code} > where *cluster1* is cluster name and *"c6400.ambari.apache.org" : "c6410.ambari.apache.org"* are host names pair in the format "current_host_name" : "new_host_name". > 7) Execute this command on the ambari-server host: > {code} > ambari-server update-host-names host_names_changes.json > {code} > 8) After successful end of this action, please update host names for all nodes, according to changes that you added to *.json file. > 9) If host name was changed for node with ambari-server, then you should update it for every ambari-agent in /etc/ambari-agent/conf/ambari-agent.ini, field "hostname" for server. > 10) Start ambari-server and all ambari-agents. > 11) Start services. -- This message was sent by Atlassian JIRA (v6.3.4#6332)