How to enable zookeeper tracking in drillbit.log

Document created by Hao Zhu Employee on Feb 7, 2016
Version 1Show Document
  • View in full screen mode

Author: Hao Zhu


Original Publication Date: November 4, 2015


Environment :

Drill 1.2


How to track when drillbit joins the drill cluster or when drillbit disconnects in drillbit.log.



1. Add below entry in conf/logback.xml

<logger name="org.apache.drill.exec.coord.zk" additivity="false"> <level value="debug" /> <appender-ref ref="FILE" /> </logger>

2. Restart this drillbit.


3. After that, whenever there is zookeeper znodes changes, it will print in this drillbit.log.


For example:

2015-11-04 19:47:02,927 [ServiceCache-0] DEBUG o.a.d.e.c.zk.ZKClusterCoordinator - Cache changed, updating. 2015-11-04 19:47:02,932 [ServiceCache-0] DEBUG o.a.d.e.c.zk.ZKClusterCoordinator - Active drillbit set changed.  Now includes 2 total bits.  New active drillbits:
1 person found this helpful