简体   繁体   中英

Configuring Apache NiFi for sending messages to Message Hub

What properties do I need to set to start sending messages from Apache NiFi PublishKafka processor to Message Hub in IBM Cloud?

在此处输入图片说明

I have entered these values for the reference

在此处输入图片说明

I am doing this on Ubuntu 18.04

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM