Comments (7)
As a drop in solution, you can change this line
https://github.com/mesos/kafka/blob/master/src/scala/main/ly/stealth/mesos/kafka/scheduler/mesos/MesosTaskFactory.scala#L95
into
defaults += ("listeners" -> s"SSL://:${ reservation.port }")
Then, pass configurations for kafka SSL when you create broker. Make sure that you enable interbroker SSL in the config too since we only listen on 1 port.
I'm willing to work on a PR for this to support PLAINTEXT in interbroker connect too. ( Basically, we have to make listeners listen on one more port, right?)
from kafka.
I'm interested in this too and willing to pick up some part of the implementation if needed.
from kafka.
Hi, anyone is working on it? I'm sort of stuck on enabling PLAINTEXT. I'll appreciate some help with how to approach this.
from kafka.
I can help you conceptually, want to detail what you've tried so far?
from kafka.
@ror6ax As i say, i have only tried to change the listeners in that file to SSL. And it works with SSL flawlessly. However, i think it would be a plus if we can make it listen on both SSL and PLAINTEXT. Namely, we need to make it listens on 2 ports and i doubt this would be an easy change... Haven't taken a close look into it though.
from kafka.
@codenamelxl can you please show how do you enable SSL in the config?
from kafka.
@ror6ax Forget what i say earlier. You just have to put appropriate config to set up kafka security like define at : https://kafka.apache.org/documentation/#security_ssl into a file (Ex:server.properties).
Then update broker through kafka mesos CLI with flag --options file:server.properties
. That's it.
from kafka.
Related Issues (20)
- Host advertisement doesn't seem to work on Kafka 0.9.0+
- Unable to Start Brokers Executor - java.lang.reflect.InvocationTargetException HOT 1
- Can't modify bind-address of broker HOT 2
- very quick offerRescinded, brokers not starting HOT 11
- Not able to start broker with Vagrant example HOT 3
- Topic rebalance REST API: NPE for get status
- How to add kafka connectors
- Multiple version of kafka same schedular HOT 2
- Does adding topic have to be through the framework HOT 1
- Exception when creating topics HOT 1
- Question: Differerence between mesos-kafka & DCOS-kafka-service? HOT 1
- Framework stuck at broker reconciling state HOT 5
- More config support for scheduler from Apache Kafka? HOT 6
- Error: java.io.IOException: 400 - java.lang.NullPointerException, when broker start
- Missing broker task attribute 'endpoint' on broker startup / reconciliation HOT 3
- "listeners" manipulation when bind-address set breaks ability to use SSL
- Build Failing for openJdk7 & KafkaVer:0.10.2.0
- Will Kafka 0.11.x be supported? HOT 10
- broker start timeout when Mesos agent start with gpu/nvidia isolation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kafka.