Configuring Kafka processors and scripts
This procedure configures the Kafka processors and scripts to enable synchronization between Elasticsearch and the MDM database.
Procedure
- Browse to the folder MDM_INSTALL_HOME\KafkaProcessor\properties.
- Open kafkaruntimeForES.properties and set values for the following
properties:
- kafkaconnect.bootstrap.servers
- elasticsearch.hostname
- elasticsearch.port
- elasticsearch.user
- elasticsearch.passwordNote: The elasticsearch.user and elasticsearch.password credentials are created with X-Pack plugin's
setup-passwordsscript. For more information, see Setting up the X-Pack plugin to secure Elasticsearch. - elasticsearch.ssl_enabled
- mdm.hostname
- mdm.port
- mdm.user
- mdm.password
-
Open kafkabatchForES.properties and set values for the following
properties:
- kafkaconnect.bootstrap.servers
- elasticsearch.hostname
- elasticsearch.port
- elasticsearch.user
- elasticsearch.passwordNote: The elasticsearch.user and elasticsearch.password credentials are created with X-Pack plugin's
setup-passwordsscript. For more information, see Setting up the X-Pack plugin to secure Elasticsearch. - elasticsearch.ssl_enabled
- mdm.hostname
- mdm.port
- mdm.user
- mdm.password
- Open kafkadbconnect.properties and set values for the MDM database connection parameters. If SSL is enabled on the MDM database, set values for the SSL related properties.
- Open DBConnectConfig.properties and set values for the following
properties:
- kafkaconnect.hostname
- kafkaconnect.portnum
- Browse to the folder MDM_INSTALL_HOME\KafkaProcessor\bin.
- Open createTopics_Sample.bat or
createTopics_Sample.sh and set values for the following properties:
- KAFKA_HOME
- hostname
- port
- Open startConnectorDistributed.bat or
startConnectorDistributed.sh and set values for the following properties:
- KAFKA_HOME
- DB_DRIVER_JARPATH
- Open runDBConnectorDistributed.bat or runDBConnectorDistributed.sh and set a value for JAVA_HOME.
- Open runKafkaStreamsForES.bat or runKafkaStreamsForES.sh and set a value for JAVA_HOME.
- Open runKafkaBatchStreamsForES.bat or runKafkaBatchStreamsForES.sh and set a value for JAVA_HOME.
- Start Apache Zookeeper and the Kafka server:
- Browse to MDM_INSTALL_HOME\kafka_2.11.0.10.2.1\bin\windows.
- Open a command prompt and run
zookeeper-server-start.bat ../../config/zookeeper.properties - Open a different command prompt and run
kakfa-server-start.bat ../../config/server.properties
- Browse to MDM_INSTALL_HOME\KafkaProcessor\bin.
- Run createTopics_Sample.bat on Windows or
createTopics_Sample.sh on Linux or UNIX. This script creates the Kafka topics and is a one-time activity.