To demo this visualization, you'll need a snapshot of your cluster's ClusterMetrics
, specifically
the "live servers" list of ServerMetrics. To collect that, use the file
dump_cluster_status.jsh`
with any HBase 2.3+ client and JDK11.
$ CLASSPATH="$(env JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 hbase classpath)" /usr/lib/jvm/java-11-openjdk-amd64/bin/jshell ./dump_cluster_status.jsh
This produces the file server_metrics.json
in the local directory.
Now run the demo. To do so, place server_metrics.json
and demo.html
in the same directory.
Launch a webserver hosting that directory, for instance, with python:
$ python3 -m http.server
Serving HTTP on :: port 8000 (http://[::]:8000/) ...
Now browse to http://localhost:8000/demo.html
. If all is working, you'll see the visualization.