9.48.1 Kafka Agents Preparations
If you set the property install.str.config-script
to str-template/basic.sh
in install.xml
during the installation of , the zookeeper and kafka services are available in custom.conf
, as custom services. If you do not set this property during installation, you can add the zookeeper and kafka services as custom services by taking the following steps:
To configure the zookeeper service, run the following command:
mzsh topo set -l services:custom/obj:zookeeper '{ zookeeper1 { template: "1/standard/basic" config { startup-natures: [default] } } }'
To configure the kafka service, run the following command:
mzsh topo set -l services:custom/obj:kafka '{ kafka1 { start-after=["zookeeper/zookeeper1"] template: "1/standard/basic" config { zookeeper: "zookeeper1" deployment-info: [{ sc:"sc1",brokerid:1},{ sc:"sc2",brokerid:2},{ sc:"sc3",brokerid:3}] } } }'
Running these two commands adds the zookeeper and kafka service configurations to the custom.conf
.
This section includes the following subsections: