If I’m using a secured Kafka using SASL_SSL. Is th...
# troubleshooting
c
If I’m using a secured Kafka using SASL_SSL. Is there any way of configuring that and use those credentials? Or there is another way of setting security from Pinot to Kafka for data ingestion?
j
@Alexander Pucher Can you please help answering this?
nvm.. Xiang already replied: I think we have an issue open for SASL_SSL support: https://github.com/apache/incubator-pinot/issues/7134
r
@Carlos Domínguez @Jackie JAVA_OPTS="-Xms1G -Xmx4G -Dplugins.dir=plugins -Djava.security.auth.login.config=/home/dev/client_jaas.conf" bin/pinot-admin.sh StartController -configFileName ~/temp/pinot/pinot-test/controller.conf Use this java option and give ur Jaas file location if u are starting ur component separately if you are using quickstart-batch.sh file then just give Jaas file location as mentioned in this PR. I created this PR it's working fine now ( answer provided by @Xiang Fu in this PR comment section). Please try that.
c
Regarding security is there a way of specifying credentials from
streamConfig
section in the table definition?
Thanks in advance
@Alexander Pucher @Jackie @RK
r
security.protocol=SASL_PLAINTEXT (or SASL_SSL or PLAINTEXT) sasl.kerberos.service.name="kafka" into your stream configs in your table conf
👍 2
j
Thanks @RK for answering the question. @Alexander Pucher @Xiang Fu Let's add these steps into the pinot doc. Seems a common issue when people trying to enable authorization
x
Yes, we can add a section here for how to connect to secure Kafka based on different protocols https://docs.pinot.apache.org/basics/data-import/pinot-stream-ingestion/import-from-apache-kafka#add-sample-data-to-the-kafka-topic
3
r
@Xiang Fu @Jackie @Carlos Domínguez Updated steps to enable kerberous authentication in this PR. Thanks. RK
@Carlos Domínguez is it worked for you. (Secured Kafka integration)?
c
Not yet
The thing is, I’m getting my credentials from Confluent Cloud
API KEY and API SECRET
Then I have
Copy code
bootstrap.servers=XXXX
security.protocol=SASL_SSL
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule   required username='{{ CLUSTER_API_KEY }}'   password='{{ CLUSTER_API_SECRET }}';
sasl.mechanism=PLAIN
Is there any way of using all those properties in table definition directly?
@RK
r
Yes we can set bootstrap.servers , security.protocol and sasl.mechanism in table-config file.not sure about Jaas.config , username, password. @Xiang Fu can suggest.
x
Can you try to put them into stream configs section?
c
It seems its working
👍 1