Safety Instructions on Using Kafka

Brief Introduction to Kafka APIs

Kafka does not support old Producer APIs and old Consumer APIs.

Protocol Description for Accessing Kafka

The protocols used to access Kafka are as follows: PLAINTEXT, SSL, SASL_PLAINTEXT, and SASL_SSL.

When Kafka service is started, the listeners using the PLAINTEXT and SASL_PLAINTEXT protocols are started. You can set ssl.mode.enable to true in Kafka service configuration to start listeners using SSL and SASL_SSL protocols. The following table describes the four protocols:

Protocol

Description

Default Port

PLAINTEXT

Supports plaintext access without authentication.

9092

SASL_PLAINTEXT

Supports plaintext access with Kerberos authentication.

21007

SSL

Supports SSL-encrypted access without authentication.

9093

SASL_SSL

Supports SSL-encrypted access with Kerberos authentication.

21009

ACL Settings for a Topic

To view and set topic permission information, run the kafka-acls.sh script on the Linux client. For details, see Managing Kafka User Permissions.

Use of Kafka APIs in Different Scenarios