Create a test topic in Hermes using the Kafka client
Create a topic for sending and receiving test messages in the Hermes Kafka cluster.
시작하기 전에
- Secure your Kafka topics by generating a ServiceNow® instance-signed certificate and keystore. You must provide truststore and keystore details when you configure a producer to create a topic in Hermes. See Set up a secure connection to the Hermes Messaging Service.
- Download and install Apache Kafka. See Prepare your Apache Kafka client environment.
Role required: admin
이 태스크 정보
The full Hermes Kafka topic name is composed of the following elements:
snc.<instance_name>.<namespace>.<app_id>.<topic_name>
where:
<instance_name>is the name of your instance<namespace>is the namespace of the domain your Kafka topic belongs to (optional)<app_id>is your application IDThe topic you create belongs to this application. Specify either of the following:
sn_logstoanalyticsfor Log Export Service topicssn_streamconnectfor Stream Connect topics
<topic_name>is the unique name for your topic
주:
The full topic name is case-sensitive and limited to 200 characters.
프로시저
결과
A test topic is created in the Hermes Kafka cluster.
다음에 수행할 작업
Produce test messages to a Hermes topic using the Kafka client