This section covers how we can collect cluster details (similar to the details shown on the Storm UI page) using the Nimbus thrift client. Extracting/collecting information through the Nimbus thrift client allows us to visualize the data.
The Nimbus thrift API is very rich, and exposes all the necessary information required to monitor the Storm cluster.
In this section, we will be creating a Java project that will contain classes that will perform the following operations using the Nimbus thrift client:
- Collect the Nimbus configuration
- Collect the supervisor statistics
- Collect the topology statistics
- Collect the spout statistics for a given topology
- Collect the bolt statistics for a given topology
- Kill the given topology
The following are the steps to fetch the cluster details using the Nimbus thrift client:
- Create a Maven project by using
com.stormadvance
asgroupId
andstormmonitoring
asartifactId
. - Add the following...