8.2 Disabling and Removing Kafka from the Zone

NOTE:Antimalware and Vertica require Kafka. Hence, if Antimalware or Vertica is configured in your zone, then you should not remove Kafka. For more information on removing Vertica, see Disabling and Removing Vertica. To remove Antimalware, please contact Global Technical Support.

To disable Kafka:

  1. Disable the following services on the Kafka servers.

    microfocus-zenkafka-connect.service: Execute the following commands in the order listed below:

    systemctl stop microfocus-zenkafka-connect.service
    systemctl disable microfocus-zenkafka-connect.service

    microfocus-zenkafka.service: Execute the following commands in the order listed below:

    systemctl stop microfocus-zenkafka.service
    systemctl disable microfocus-zenkafka.service

    microfocus-zenkafka-schema-registry.service: Execute the following commands in the order listed below:

    systemctl stop microfocus-zenkafka-schema-registry.service
    systemctl disable microfocus-zenkafka-schema-registry.service
  2. Run the following query to remove the opaque entries related to Kafka from the database:

    DELETE FROM ZOPAQUEDATA WHERE name LIKE '%kafka%'
  3. Remove the Kafka role from the database:

    DELETE FROM ZZENSERVERROLES roles WHERE ROLES = 'Kafka'
  4. Remove the Kafka connector information from the database:

    DELETE FROM zKafkaTopicConsumerMetrics;
  5. Restart the ZENserver and ZENloader services on all the servers.