I've not tried this myself, but once you have a working JAAS config (from https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-quickstart-kafka-enabled-event-hubs#send-and-receive-messages-with-kafka-in-event-hubs), set the corresponding protocol and mechanism properties in the NiFi processor, and put the content of sasl.jaas.config in a file and reference it from NiFi's bootstrap.conf as indicated by the second link you found.
Good luck! On Wed, 5 Sep 2018 at 15:54, João Henrique Freitas <[email protected]> wrote: > > > Hello! > > I'm exploring Azure Event Hub with Kafka support. I know that's in preview. > > But I would like to know how to use PublishKafka with this configuration: > > https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-quickstart-kafka-enabled-event-hubs > > I don't know how to configure kafka processor with authentication parameters > like: > > security.protocol=SASL_SSL > sasl.mechanism=PLAIN > sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule > required username="$ConnectionString" > password="{YOUR.EVENTHUBS.CONNECTION.STRING}"; > > > Should I follow this? > > https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-kafka-1-0-nar/1.7.1/org.apache.nifi.processors.kafka.pubsub.PublishKafka_1_0/additionalDetails.html > > Or maybe its necessary do a patch in Publish/Consumer KafkaProcessor ? > > Best regards, > > -- > João Henrique Ferreira de Freitas - joaohf_at_gmail.com > Campinas-SP-Brasil
