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

Add Service Wizard corrupts the zookeeper config for existing Storm service

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.6.1
    • 1.6.1
    • ambari-web
    • None

    Description

      STR:
      1. On a cluster with Storm already installed, run Add Service Wizard to install an additional service not already part of the cluster (say, Falcon, but it doesn't matter which service).
      2. Try to restart Storm. Nimbus/Supervisor will not be able to start

      Note that adding Storm itself via Add Service Wizard works fine.
      This corruption happens when adding a non-Storm service.

      The reason is Add Service Wizard updates storm-site and in doing so, corrupts storm.zookeeper.servers property.

      Before running Add Service Wizard:

      storm.zookeeper.servers: "['c6401.ambari.apache.org','c6402.ambari.apache.org','c6403.ambari.apache.org']"
      

      After completing Add Service Wizard to add another service:

      storm.zookeeper.servers: "'['c6401.ambari.apache.org','c6402.ambari.apache.org','c6403.ambari.apache.org']'",
      

      After completing Add Service Wizard again to add another service:

      storm.zookeeper.servers: "''['c6401.ambari.apache.org','c6402.ambari.apache.org','c6403.ambari.apache.org']''",
      

      Note that every time Add Service Wizard runs, extra single quotes are added around the ZK array.

      Workaround
      After running Add Service Wizard, go to Services > Storm > Config and hit Save. This fixes storm.zookeeper.servers and Nimbus/Supervisors will be able to start.

      Attachments

        1. BUG-20099_branch-1.6.1.patch
          4 kB
          Antonenko Alexander
        2. BUG-20099_trunk.patch
          4 kB
          Antonenko Alexander

        Activity

          People

            aantonenko Antonenko Alexander
            aantonenko Antonenko Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: