Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-13507

Ability to change host names for a stopped cluster

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • ambari-server
    • None

    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

      {
        "cluster1" : {
            "c6400.ambari.apache.org" : "c6410.ambari.apache.org",
            "c6401.ambari.apache.org" : "c6411.ambari.apache.org",
           ....
        }
      }
      

      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:

      ambari-server update-host-names host_names_changes.json
      

      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.

      Attachments

        1. AMBARI-13507.patch
          33 kB
          Vitaly Brodetskyi

        Issue Links

          Activity

            People

              vbrodetskyi Vitaly Brodetskyi
              vbrodetskyi Vitaly Brodetskyi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: