Initial commit
initial commit
Make monitor a bit more useful

shows total size of outstanding hlogs, shows correct number of outstanding hlog files, and shows progress within the current hlog being processed.
Various improvements, mainly the use of jmx

 * use JMX to retrieve the "age of last shipped op" from HBase
 * introduce cli option parsing, remove hardcoded 'localhost' zookeeper
 * print some info on how to interpret the metrics
 * reorganize the code into multiple methods to reduce the spaghetti effect
Adding files forgotten to add in prev commit
Avoid confusing size output when hlogs do not exist
Add tool to wait until replication is finished

Since it reuses the same information retrieved by sep-replication-status, refactored the code so that it is more modular.
Note that this tool is not perfect, it is based on heuristics to determine if the replication is done: no hlog files queued (beyond the current one) and no activity during the last two minutes.
handle non-atomicity between zk operations

between the time we request the list of children and then access the details of a specific child, the child might have disappeared
properly close zk connections
depend on sep 1.1
read ngdata-specific metrics
add rpm creation
Rename hbase-sep-monitoring to -tools
fix rpm, artifact jar was not included

decided to use the lib dir from the .tar.gz dist, so that the logic for composing it is only in one place.
Print info on replication source sleep state

this is exposed by a new mbean in the sep's forkedreplicationsource
fix file permissions in rpm
Use 1.1 version number to align with sep numbering
deterministic output order in report
cope with nodes disappearing from zk

between the time we call getchildren and then process each child, the child might have been removed
Add 'sep-tools/' from commit '098e41506d5cd821d6130e2ced33948e3365bb42'

git-subtree-dir: sep-tools
git-subtree-mainline: e298b77c662444bca433b7e4b193dd64b553dc25
git-subtree-split: 098e41506d5cd821d6130e2ced33948e3365bb42