Comments (5)
Hey, great, RTFM right...
I will give it a try!
from kafka-shell.
Hey @cfontes -- thank you very much!!
So, what support are you looking for? Can you give an example of the stuff you would like to skip typing on kafka-acls
? I don't use that command much so I'm fairly unaware of the things that you have to repeatedly type. We can definitely add what you're looking for, though! 😄
from kafka-shell.
Hey @devshawn, basically when you are using kafka-console-consumer or producer in a topic with ACL on it you have to do this:
--consumer-property sasl.mechanism=PLAIN
--consumer-property security.protocol=SASL_SSL
--consumer-property ssl.truststore.location= ....
--consumer-property ssl.truststore.password= .....
--consumer-property ssl.enabled.protocols=TLSv1.2
--consumer-property ssl.cipher.suites=TLS_ECDHE_ECDSA_WITH_AES_256 ....
--consumer-property ssl.truststore.type=JKS
--consumer-property ssl.secure.random.implementation=........
--consumer-property ssl.endpoint.identification.algorithm="" \
But this is not available in all kafka shell commands, so there is also a way to setup a file that you import before running the kafka shell scripts so ACL kicks in and you can talk to the cluster.
from kafka-shell.
Hey @cfontes! Ah, yes! So, right now, kafka-console-consumer
and kafka-console-producer
(and the avro variants) can take the properties file as a part of the configuration of kafka-shell
.
If you put those properties in a properties file, such as config.properties
:
security.protocol=SASL_SSL
ssl.enabled.protocols=TLSv1.2
ssl.truststore.type=JKS
You can then set up your kafka-shell
config (in ~/.kafka-shell/config.yaml
) to look like this:
...
clusters:
my-cluster:
bootstrap_servers: localhost:9092
zookeeper_connect: localhost:2181
schema_registry_url: http://localhost:8081
ksql_server_url: http://localhost:8081
consumer_settings:
config: config.properties
producer_settings:
config: config.properties
Then, it will automatically add --consumer.config
and --producer.config
when you use the consumer/producer commands. This is detailed a bit more in CONFIGURATION.md. Note that the paths given above would be relative so wherever you started the shell, so you may want to configure them as absolute paths. Is that what you're looking for? :)
In the next release, I'm planning to add the ability to configure the --command-config
(which takes a similar properties file, used in commands like kafka-acls
).
from kafka-shell.
Let me know how it goes!
from kafka-shell.
Related Issues (15)
- Add command: kafka-reassign-partitions
- config.yml removed once sing off HOT 2
- Configuration file validation should evaluate environment variables HOT 3
- Add additional docs for working with kafka in docker HOT 9
- cannot launch kafka-shell HOT 6
- More config/properties auto-completions HOT 1
- Add support for `.sh` kafka commands in the PATH HOT 5
- Add command: kafka-replica-verification
- How to add my own custom kafka commands into this? HOT 4
- Connect to Remote kafka cluster HOT 4
- Add command: kafka-preferred-replica-election
- Plzzz Add more Easter eggs
- Allow for commands to be piped
- Auto fill `--command-config` for commands
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-shell.