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

Format ZKFC commands failing while enabling NameNode HA

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.5.0
    • None
    • None

    Description

      Format ZKFC commands failing while enabling NameNode HA at Initializa Metadata step

      17/01/26 00:45:51 INFO ha.ActiveStandbyElector: Terminating ZK connection for elector id=124323713 appData=null cb=Elector callbacks for NameNode at <EXTERNAL_HOST_NAME>/<INTERNAL_HOST_NAME>:8020
      17/01/26 00:45:51 INFO zookeeper.ZooKeeper: Session: 0x359d8394c030006 closed
      17/01/26 00:45:51 INFO zookeeper.ClientCnxn: EventThread shut down
      17/01/26 00:45:51 FATAL tools.DFSZKFailoverController: Got a fatal error, exiting now
      java.io.IOException: Couldn't create /hadoop-ha/nameservice
      	at org.apache.hadoop.ha.ActiveStandbyElector.ensureParentZNode(ActiveStandbyElector.java:350)
      	at org.apache.hadoop.ha.ZKFailoverController.formatZK(ZKFailoverController.java:274)
      	at org.apache.hadoop.ha.ZKFailoverController.doRun(ZKFailoverController.java:212)
      	at org.apache.hadoop.ha.ZKFailoverController.access$000(ZKFailoverController.java:61)
      	at org.apache.hadoop.ha.ZKFailoverController$1.run(ZKFailoverController.java:172)
      	at org.apache.hadoop.ha.ZKFailoverController$1.run(ZKFailoverController.java:168)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at javax.security.auth.Subject.doAs(Subject.java:360)
      	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1704)
      	at org.apache.hadoop.security.SecurityUtil.doAsLoginUserOrFatal(SecurityUtil.java:474)
      	at org.apache.hadoop.ha.ZKFailoverController.run(ZKFailoverController.java:168)
      	at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:183)
      Caused by: org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /hadoop-ha/nameservice
      	at org.apache.zookeeper.KeeperException.create(KeeperException.java:113)
      	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
      	at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
      	at org.apache.hadoop.ha.ActiveStandbyElector$3.run(ActiveStandbyElector.java:1000)
      	at org.apache.hadoop.ha.ActiveStandbyElector$3.run(ActiveStandbyElector.java:997)
      	at org.apache.hadoop.ha.ActiveStandbyElector.zkDoWithRetries(ActiveStandbyElector.java:1041)
      	at org.apache.hadoop.ha.ActiveStandbyElector.createWithRetries(ActiveStandbyElector.java:997)
      	at org.apache.hadoop.ha.ActiveStandbyElector.ensureParentZNode(ActiveStandbyElector.java:344)
      	... 11 more
      

      Attachments

        1. AMBARI-19736.v1.patch
          14 kB
          Sebastian Toader
        2. AMBARI-19736.branch-2.5.v1.patch
          7 kB
          Sebastian Toader

        Issue Links

          Activity

            People

              stoader Sebastian Toader
              vrathod Vivek Rathod
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: