chetanmeh commented on issue #4717: Kafka Ver. 0.11.0.1 uses OracleJDK
URL: https://github.com/apache/openwhisk/issues/4717#issuecomment-569511329
 
 
   > What happens if I run java -jar openwhisk-standalone.jar without '--kafka' 
switch?
   
   Then OpenWhisk runs in [lean mode][1] (#4216) without Kafka. With `--kafka` 
it uses [embedded kafka][2]. See #4628 for details on what all was done for 
this mode. Note that it uses Kafka 2.1.1. So basic stuff works as expected with 
this Kafka version.
   
   To make standalone connect to existing running Kafka would need some work as 
current approach was implemented with embedded mode and has to adapt the 
listeners to workaround the Docker networking. May be try launching Standalone 
without `--kafka` switch and instead set following system properties
   
   ```
   -Dwhisk-config.kafka.hosts=localhost:9093 
-Dwhisk.spi.MessagingProvider=org.apache.openwhisk.connector.kafka.KafkaMessagingProvider
   
-Dwhisk.spi.LoadBalancerProvider=org.apache.openwhisk.standalone.KafkaAwareLeanBalancer
   ```
   
   Change the port as per your setup. I have not tried it so cannot comment if 
it works as expected!
   
   [1]: 
https://medium.com/openwhisk/lean-openwhisk-open-source-faas-for-edge-computing-fb823c6bbb9b
   [2]: https://github.com/embeddedkafka/embedded-kafka

----------------------------------------------------------------
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

Reply via email to