Skip to main content
mike_bronson7
Gold ⭐️⭐️⭐️
Jan 2, 2019 4:10 PM UTC
Solved

metrics collector + ams-hbase-unsecure Received unexpected KeeperException,

hi all

we have ambari cluster with HDP version 2.6.0

when we try to start the metrics collector from ambari , we get the following logs:

2019-01-02 06:35:16,406 ERROR org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher: hconnection-0x4bdeaabb-0x1680d44c1810001, quorum=master02.sys32.com:61181, baseZNode=/ams-hbase-unsecure Received unexpected KeeperException, re-throwing exception
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /ams-hbase-unsecure/table/SYSTEM.CATALOG
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1212)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.getData(RecoverableZooKeeper.java:354)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.getData(ZKUtil.java:622)




2019-01-02 06:35:18,256 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server master02.sys32.com/101.23.98.60:61181. Will not attempt to authenticate using SASL (unknown error)
2019-01-02 06:35:18,257 WARN org.apache.zookeeper.ClientCnxn: Session 0x1680d44c1810001 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
2019-01-02 06:35:19,656 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server master02.sys32.com/101.23.98.60:61181. Will not attempt to authenticate using SASL (unknown error)

we also

clear the contents of /var/lib/ambari-metrics-collector/hbase-tmp/zookeeper/* and restart Ambari metrics collector , but this not help

what else we can do in order to solve this isshue ?

jsensharma
Platinum ⭐️⭐️
Jan 2, 2019 4:16 PM UTC

@Michael Bronson

Can you please share the complete AMS collector logs .. along with the HMaster log which you can find in the same directory where the AMS collector log is present.

Do you have enough free memory available on your system (where AMS is running)

Also can you please share the cluster node numbers present in your cluster? based on that we can try to find if the Heap settings for AMS collector and HMaster are OK or not?

Also let us know if your AMS collector is running in Embedded Mode or Distributed Mode?

Looking at collector-gc.log and gc.log (fopr hmaster process can be also good).

What is the Ambari Version and the output of the following command (Any recent ambari upgrade performed recently?) When was the AMS running fine last time? Any recent changes made to ams configs?

# rpm -qa | grep ambari

.

7 replies

jsensharma
Platinum ⭐️⭐️
Platinum ⭐️⭐️
Jan 2, 2019 4:16 PM UTC

@Michael Bronson

Can you please share the complete AMS collector logs .. along with the HMaster log which you can find in the same directory where the AMS collector log is present.

Do you have enough free memory available on your system (where AMS is running)

Also can you please share the cluster node numbers present in your cluster? based on that we can try to find if the Heap settings for AMS collector and HMaster are OK or not?

Also let us know if your AMS collector is running in Embedded Mode or Distributed Mode?

Looking at collector-gc.log and gc.log (fopr hmaster process can be also good).

What is the Ambari Version and the output of the following command (Any recent ambari upgrade performed recently?) When was the AMS running fine last time? Any recent changes made to ams configs?

# rpm -qa | grep ambari

.

Translate
jsensharma
Platinum ⭐️⭐️
Platinum ⭐️⭐️
Jan 2, 2019 4:29 PM UTC

@Michael Bronson

Your current Thread query looks very similar to the other HCC thread opened by you: https://community.hortonworks.com/questions/231177/metrics-failed-on-orgapachehadoophbasezookeeperzoo.html?childToView=232247#answer-232247

.

Can you please mark one of the HCC thread as Closed so that all the hcc users can respond to the same single thread.

Translate