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

ZKFailoverController failed on restart

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • ambari-agent
    • None

    Description

      Issue Summary:
      1. When Namenode HA is enabled and "automatic failover" is selected, the "hdfs zkfc -formatZK" command is used to create a znode in ZooKeeper inside of which the automatic failover system stores its data.
      2. When Namenode HA is enabled through the wizard, the user is asked to manually run this command.
      3. When Namenode HA cluster is deployed using HA blueprint, the agent script has been executing "hdfs zkfc -formatZK -force -nonInteractive" to auto-format the znode. This means that everytime a ZKFC starts, we end up formatting the znode used to maintain the failover state.
      Fix:
      1. Changing the command to "hdfs zkfc -formatZK -nonInteractive" so that the failover state is not reformatted and handling the case when the command returns a status=2 to indicate that the znode already exists and hence skipping formatting it.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jluniya Jayush Luniya
            jluniya Jayush Luniya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment