How do you connect NIFI to IBM MessageHub through PublishKafka processor?

谁说胖子不能爱 提交于 2019-12-24 08:00:10

问题


I am trying to connect NIFI to IBM MessageHub but I am not getting any connection working.

Does anyone have a working example on how to configure it?

I get a timeout exception in the bulletinboard.

I have configured a PublishKafka_0_11 1.4.0 processor. Configured it as SASL_SSL, added standard ssl context service, added the jaas.conf

KafkaClient {
  org.apache.kafka.common.security.plain.PlainLoginModule required
  serviceName="Message Hub-bq"
  username="xxxxxx"
  password="xxxxxx";
};

And in the log I get:

2017-11-24 13:47:01,407 INFO [kafka-producer-network-thread | producer-1] o.a.k.common.network.SaslChannelBuilder Failed to create channel due to org.apache.kafka.common.KafkaException: Failed to configure SaslClientAuthenticator


回答1:


Looking at the configuration you provided, it looks like you're missing the SASL mechanism. To connect to Message Hub this needs to be set to PLAIN.

From the NiFi docs about PublishKafka, it looks like you can directly provide Kafka setting using Dynamic Properties. You will need to set one of these to:

sasl.mechanism=PLAIN

Also be sure you've specified the path to the JAAS file via -Djava.security.auth.login.config=PATH in your NiFi configuration.



来源:https://stackoverflow.com/questions/47475010/how-do-you-connect-nifi-to-ibm-messagehub-through-publishkafka-processor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!