Enable the integration by creating a kafka.properties file and
populating it with relevant properties.
The Network Performance Insight® Kafka
server must be available and running in order to be able to enable the integration.
-
Copy the
kafka.properties
file from its default location $NCHOME/precision/storm/conf/default/ to the following location:
$NCHOME/precision/storm/conf/
-
Edit the
kafka.properties
file as follows:
-
Set the kafka producer properties under the
kafka.producer
property according
to the information at the following link: http://kafka.apache.org/documentation.html#producerconfigs.
-
Set the kafka consumer properties under the
kafka.consumer
property according
to the information at the following link: http://kafka.apache.org/documentation.html#newconsumerconfigs.
Note: The only mandatory properties are the following:
kafka.consumer.bootstrap.servers
kafka.producer.bootstrap.servers
-
(Optional) If you anticipate the need to enable and disable the integration often then you can
add the
kafka.enabled
property to facilitate this. To do this, add the
kafka.enabled
property to one of the following properties files, and set this
property to the value true.
- $NCHOME/precision/storm/conf/NMStormTopology.properties
- $NCHOME/precision/storm/conf/kafka.properties
If the property is not present in either file, then this means that
kafka.enabled=true
.
-
Restart Apache Storm, by running the following commands:
itnm_stop storm
itnm_start storm
To test the output of the integration use the ncp_storm_validate.sh
script.