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

Cannot change Zookeeper Server from Ambari to different node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.1
    • None
    • None

    Description

      While adding a master node, any attempts to change the zookeeper server from Ambari are not allowed as the params.zookeeper_hosts value is not updated or changed whether I attempt to move the zookeeper hosts to the master or a different data node. All attempts at installing the zookeeper server fail.

      ValueError when adding ZooKeeper Server to a new master node.
      Traceback (most recent call last):
        File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_server.py", line 179, in <module>
          ZookeeperServer().execute()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
          method(env)
        File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_server.py", line 70, in install
          self.configure(env)
        File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_server.py", line 49, in configure
          zookeeper(type='server', upgrade_type=upgrade_type)
        File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk
          return fn(*args, **kwargs)
        File "/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper.py", line 82, in zookeeper
          myid = str(sorted(params.zookeeper_hosts).index(params.hostname) + 1)
      ValueError: list.index(x): x not in list
      

      Attachments

        1. AMBARI-14491_v2.patch
          7 kB
          Oliver Szabo

        Issue Links

          Activity

            People

              oleewere Oliver Szabo
              barrjeff Jeffrey Barr
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: