Using a Configuration File
- 1 Minute to read
- Print
- DarkLight
Using a Configuration File
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
The file contains the credentials and will be used when connecting to Kafka.
This is a sensitive file so please set proper file permissions for the configuration file, as it contains the user and the password that will be used when connecting to Mapp's Streaming endpoint.
Create a configuration file as follows (typically a
.conf
file) and include the following in your file:KafkaClient { org.apache.kafka.common.security.scram.ScramLoginModule required username="myuser" password="mypassword"; };
Substitute <username> and <password> by credentials provided by Mapp.
Then pass the following flag to the JVM (Java Virtual Machine) during the execution of your software.
-Djava.security.auth.login.config=/path/to/my/jaas.conf
Substitute the path to your
jaas.conf
-file.
Was this article helpful?