[ https://issues.apache.org/jira/browse/AMBARI-12347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14619652#comment-14619652 ]
Siddharth Wagle commented on AMBARI-12347: ------------------------------------------ The issue is with the Zookeeper principal generated for AMS is called _amszk/<HOSTNAME>@<REALM>_ Without proper ACL setup Zookeeper does not work with custom principal name. *Workaround*: is to use existing keytab if present on that host or create a new keytab as _zookeeper/<HOSTNAME>@<REALM>_ > AMS does not work with Kerberization in distrbuted mode > ------------------------------------------------------- > > Key: AMBARI-12347 > URL: https://issues.apache.org/jira/browse/AMBARI-12347 > Project: Ambari > Issue Type: Bug > Components: ambari-metrics > Affects Versions: 2.0.0 > Reporter: Siddharth Wagle > Assignee: Siddharth Wagle > Priority: Critical > Fix For: 2.1.1 > > > *STR*: > - Setup AMS in distributed mode > - Enable Kerberos using the Security wizard > - AMS fails to start with following log messages: > /var/log/ambari-metrics-collector/ambari-metrics-collector.log: > {code} > 22:36:44,699 ERROR [main] ConnectionManager$HConnectionImplementation:879 - > The node /ams-hbase-secure is not in ZooKeeper. It should have been written > by the master. Check the value configured in 'zookeeper.znode.parent'. There > could be a mismatch with the one configured in the master. > {code} > /var/log/ambari-metrics-collector/hbase-ams-master-ambari-sid-3.log: > {code} > 2015-07-08 22:51:08,626 WARN [main] zookeeper.RecoverableZooKeeper: Possibly > transient ZooKeeper, quorum=ambari-sid-3.c.pramod-thangali.internal:61181, > exception=org.apache.zookeeper.KeeperException$ConnectionLossException: > KeeperErrorCode = ConnectionLoss for /ams-hbase-secure > 2015-07-08 22:51:08,626 ERROR [main] zookeeper.RecoverableZooKeeper: > ZooKeeper create failed after 4 attempts > 2015-07-08 22:51:08,626 ERROR [main] master.HMasterCommandLine: Master exiting > java.lang.RuntimeException: Failed construction of Master: class > org.apache.hadoop.hbase.master.HMaster > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)