qubole / rubix

Cache File System optimized for columnar formats and object stores
Apache License 2.0
183 stars 74 forks source link

new: dev: ISS250: Added support to start a cron by checking the bookkeeper connectivity #251

Closed kvankayala closed 5 years ago

kvankayala commented 5 years ago

In the cronjob, we should do the following :

  1. Run the command /usr/lib/hadoop2/bin/hadoop jar /usr/lib/rubix/lib/rubix-client-*.jar com.qubole.rubix.health.BookKeeperHealth
  2. If the return value of the command is 1 { Restart the bookkeeper }
codecov-io commented 5 years ago

Codecov Report

Merging #251 into master will increase coverage by 0.04%. The diff coverage is 51.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #251      +/-   ##
==========================================
+ Coverage   50.18%   50.23%   +0.04%     
==========================================
  Files          59       60       +1     
  Lines        2967     2996      +29     
  Branches      323      325       +2     
==========================================
+ Hits         1489     1505      +16     
- Misses       1389     1402      +13     
  Partials       89       89
Impacted Files Coverage Δ
...n/java/com/qubole/rubix/bookkeeper/BookKeeper.java 70.27% <0%> (-0.22%) :arrow_down:
...java/com/qubole/rubix/health/BookKeeperHealth.java 53.57% <53.57%> (ø)
.../qubole/rubix/hadoop2/Hadoop2ClusterManagerV2.java 54.38% <0%> (+1.75%) :arrow_up: