Skip to content

Commit ac0ea0a

Browse files
add security modes support:SSL, PLAINTEXT.
edit README.md
1 parent 05a84f8 commit ac0ea0a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,25 @@ pip install -r requirements.txt
2626
The Python code can be run in bash with the following,
2727
in SSL security protocol:
2828
```bash
29-
python main.py --security-protocol ssl --cert-folder ~/kafkaCerts/ \
29+
python main.py --security-protocol ssl
30+
--cert-folder ~/kafkaCerts/ \
3031
--host kafka-<name>.aivencloud.com \
3132
--port 13041 \
3233
--topic-name pizza-orders \
3334
--nr-messages 0 \
3435
--max-waiting-time 0
3536
```
37+
in PLAINTEXT security protocol:
38+
```bash
39+
python main.py --security-protocol plaintext
40+
--host your-kafka-broker-host \
41+
--port 9092 \
42+
--topic-name pizza-orders \
43+
--nr-messages 0 \
44+
--max-waiting-time 0
45+
```
3646
Where
47+
* `security-protocol`: Security protocol for Kafka. PLAINTEXT or SSL are supported.
3748
* `cert-folder`: points to the folder containing the Apache Kafka certificates (see [blog post](https://aiven.io/blog/create-your-own-data-stream-for-kafka-with-python-and-faker?utm_source=github&utm_medium=organic&utm_campaign=blog_art&utm_content=post) for more)
3849
* `host`: the Apache Kafka host
3950
* `port`: the Apache Kafka port

0 commit comments

Comments
 (0)