Topics
Topic definitions (in the configuration file topics.conf) can set the import and export properties to specify one or more transports:
| Parameter Name | Description |
|---|---|
import
|
Import all Kafka messages that arrive on the specified
|
export
|
Take all messages that arrive on this EMS topic and export them to Kafka topics using the specified kafka transports.
|
Note: The EMS server never re-exports an imported message on the same topic. (For general information about
topics.conf syntax and semantics, see topics.conf. You can also configure topics using the administration tool command addprop topic.)Examples
Example 1
The following tibemsadmin commands perform the following:
- Configure the EMS topic
myTopics.news1to import all messages that the transportsKAFKA01andKAFKA02receive from their respective Kafka brokers on the Kafka topicmyTopics.news1. - Configure the EMS topic
myTopics.news2to export messages to the transportKAFKA02. The transport will publish these messages to the Kafka topicmyTopics.news2.
addprop topic myTopics.news1 import="KAFKA01,KAFKA02" addprop topic myTopics.news2 export="KAFKA02"
Example 2
The following tibemsadmin commands perform the following:
- Configure EMS topic
myTopics.events1to import messages that the transportKAFKA03receives on the Kafka topicmyTopics.events1. - Configure EMS topic
myTopics.events2to import messages that the transportKAFKA03receives on the Kafka topicmyTopics.events2.
addprop topic myTopics.events1 import="KAFKA03" addprop topic myTopics.events2 import="KAFKA03"
Example 3
The following tibemsadmin commands perform the following:
- Configure EMS topic
myTopics.updates1to export messages to the transportKAFKA04. The transport will publish these messages to the Kafka topicmyTopics.updates1. - Configure EMS topic
myTopics.updates2to export messages to the transportKAFKA04. The transport will publish these messages to the Kafka topicmyTopics.updates2.
addprop topic myTopics.updates1 export="KAFKA04" addprop topic myTopics.updates2 export="KAFKA04"