You need to set the following Dynamic Property:
sasl.mechanism=PLAIN
You also need to specify your credentials for SASL, use the username/password from your Message Hub instance:
with PublishKafka_1_0, you also need to specify another Dynamic Property:
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="USERNAME" password="PASSWORD";
with PublishKafka_0_11, you need to create a JAAS file as described in the SASL PLAIN section in NiFi's docs. /org.apache.nifi.processors.kafka.pubsub.PublishKafka_0_11/additionalDetails.html
You can also check How do you connect NIFI to IBM MessageHub through PublishKafka processor? for a JAAS file example.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.