You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Sid Wagle <sw...@hortonworks.com> on 2016/01/06 22:58:54 UTC

Review Request 41994: Add zookeeper tick time setting to AMS for embedded mode

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41994/
-----------------------------------------------------------

Review request for Ambari, Alejandro Fernandez, Aravindan Vijayan, and Sumit Mohanty.


Bugs: AMBARI-14572
    https://issues.apache.org/jira/browse/AMBARI-14572


Repository: ambari


Description
-------

Found out that we are not setting property "hbase.zookeeper.property.tickTime" for embedded mode.
The AMS system initialization was stuck on Zookeeper being unresponsive for a few minutes right at the start of the cluster. 
The possible cause is still unknown, only explanation is a long gc pause . 
However, Zookeeper session timedout on start. with the following message:
{code}
2016-01-05 10:24:10,000 INFO  [SessionTracker] server.ZooKeeperServer: Expiring session 0x152114fb0060001, timeout of 40000ms exceeded
{code}
We set the session timeout to 120 seconds however the server session expires in 20 * _default_tick_time_ (2 seconds)
We can definitely increase this 3 fold by setting a property which should alleviate this situation.
*Note*: After auto-start brings up the daemon a second time, this does not reoccur.
{code}
2016-01-05 10:23:24,906 INFO  [main] zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:61181 sessionTimeout=120000 watcher=master:484800x0, quorum=localhost:61181, baseZNode=/ams-hbase-unsecure
{code}


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog221.java f5efde4 
  ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-site.xml 12c1be9 
  ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog221Test.java ec8beef 

Diff: https://reviews.apache.org/r/41994/diff/


Testing
-------

UpgradeCatalog test pass.


Thanks,

Sid Wagle


Re: Review Request 41994: Add zookeeper tick time setting to AMS for embedded mode

Posted by Sumit Mohanty <sm...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41994/#review113142
-----------------------------------------------------------

Ship it!


Ship It!

- Sumit Mohanty


On Jan. 6, 2016, 9:58 p.m., Sid Wagle wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41994/
> -----------------------------------------------------------
> 
> (Updated Jan. 6, 2016, 9:58 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Aravindan Vijayan, and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-14572
>     https://issues.apache.org/jira/browse/AMBARI-14572
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Found out that we are not setting property "hbase.zookeeper.property.tickTime" for embedded mode.
> The AMS system initialization was stuck on Zookeeper being unresponsive for a few minutes right at the start of the cluster. 
> The possible cause is still unknown, only explanation is a long gc pause . 
> However, Zookeeper session timedout on start. with the following message:
> {code}
> 2016-01-05 10:24:10,000 INFO  [SessionTracker] server.ZooKeeperServer: Expiring session 0x152114fb0060001, timeout of 40000ms exceeded
> {code}
> We set the session timeout to 120 seconds however the server session expires in 20 * _default_tick_time_ (2 seconds)
> We can definitely increase this 3 fold by setting a property which should alleviate this situation.
> *Note*: After auto-start brings up the daemon a second time, this does not reoccur.
> {code}
> 2016-01-05 10:23:24,906 INFO  [main] zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:61181 sessionTimeout=120000 watcher=master:484800x0, quorum=localhost:61181, baseZNode=/ams-hbase-unsecure
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog221.java f5efde4 
>   ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-site.xml 12c1be9 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog221Test.java ec8beef 
> 
> Diff: https://reviews.apache.org/r/41994/diff/
> 
> 
> Testing
> -------
> 
> UpgradeCatalog test pass.
> 
> 
> Thanks,
> 
> Sid Wagle
> 
>