Verify the keystore and truststore have been correctly generated by testing the connection to Hermes through the ADCv2 gateway.
Procedure
-
Download and install Apache Kafka.
-
Download the Apache Kafka binaries.
-
Unzip the Kafka package by running the following command:
tar -zxvf kafka_2.13-3.1.2.tgz
-
Navigate to the Kafka directory by running the following command:
-
Configure a producer.
-
Open the config/producer.properties file.
-
Configure the following SSL properties:
security.protocol=SSL
ssl.truststore.password=<truststore password>
ssl.truststore.location=<path to truststore.p12>
ssl.truststore.type=PKCS12
ssl.keystore.password=<keystore password>
ssl.keystore.location=<path to keystore.p12>
ssl.keystore.type=PKCS12
ssl.key.password=<keystore password>
Replace the following placeholder variables:
<truststore password> with your truststore password.
<path to truststore.p12> with the path to your truststore file.
<keystore password> with your keystore password.
<path to keystore.p12> with the path to your keystore file.
After following steps 1 through 3, you should have downloaded Apache Kafka and configured the producer.properties correctly. All the commands given in next steps should run within the Apache Kafka home directory.
-
Copy the config/producer.properties file to config/bootcamp.properties.
This example uses
bootcamp as a generic name.
cp config/producer.properties config/bootcamp.properties
-
Use the following command to list the topics.
bin/kafka-topics.sh --list --command-config config/bootcamp.properties --bootstrap-server <instance name>.service-now.com:4000,<instance name>.service-now.com:4001,<instance name>.service-now.com:4002,<instance name>.service-now.com:4003
Be
sure to replace
<instance name> with the name of your instance.
If there are topics in the instance, they should be listed here.