hddong opened a new pull request #25412: 
[SPARK-28691][EXAMPLES]DirectKafkaWordCount supoort kafka with kerberos
URL: https://github.com/apache/spark/pull/25412
 
 
   ## What changes were proposed in this pull request?
   
   Now, DirectKafkaWordCount example is not support to visit kafka using 
kerberos authentication. Add a parameter which target if kerberos is used.
   
   ## How was this patch tested?
   Use cmd to visit kafka with authentication off.
   $ bin/run-example streaming.DirectKafkaWordCount 
broker1-host:port,broker2-host:port \
      consumer-group topic1,topic2
   
   Use cmd to visit kafka using kerberos authentication.
   $ bin/run-example --files ${path}/kafka_jaas.conf \
      --driver-java-options 
"-Djava.security.auth.login.config=${path}/kafka_jaas.conf" \
      --conf 
"spark.executor.extraJavaOptions=-Djava.security.auth.login.config=./kafka_jaas.conf"
 \
      streaming.DirectKafkaWordCount broker1-host:port,broker2-host:port \
      consumer-group topic1,topic2 true
   
   Please review https://spark.apache.org/contributing.html before opening a 
pull request.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to