Hubble is a 'telescope' into a group of cassandra clusters to help make life easier and reducing the need to log on to the cluster thus improving security even further.
This project uses scala config. You need to setup application.conf in the resource folder.
There is application.conf.example file available in the resource folder that explains how to do this. application.conf.example is in typesafe HOCON format.
Locations that this file should be inserted are:
hubble-core/src/main/resources
hubble-core/src/test/resources
hubble-reporting/src/test/resources
By adding to hubble-core/src/main/resources, you can run the application locally. Use ClusterInfoApp located in hubble-core as main.
By adding to hubble-core/src/test/resources and hubble-reporting/src/test/resources you can test the whole application.
after adding application.conf to test resources, run
mvn clean install
This will create a package for you at target in Hubble-core component.
The generated jar file, intentionally leaves out application.conf.
In case of having different configuration for different environments, this feature becomes very handy.
You can run the jar by providing application.conf from outside. example:
java -Dconfig.file='{some-location}/application.conf' -jar hubble-core-1.0-SNAPSHOT-jar-with-dependencies.jar
If you don't have Confluence already installed or want to setup a local development environment then we recommend using docker and setup a Confluence container.
Please enable the following features in confluence otherwise the generated pages won't work: