You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ pip install -r requirements.txt
24
24
## Usage
25
25
26
26
The Python code can be run in bash with the following,
27
-
in SSL security protocol:
27
+
in ``SSL`` security protocol:
28
28
```bash
29
29
python main.py \
30
30
--security-protocol ssl \
@@ -35,7 +35,21 @@ python main.py \
35
35
--nr-messages 0 \
36
36
--max-waiting-time 0
37
37
```
38
-
in PLAINTEXT security protocol:
38
+
in ``SASL_SSL`` security protocol:
39
+
```bash
40
+
python main.py \
41
+
--security-protocol SASL_SSL \
42
+
--sasl-mechanism SCRAM-SHA-256 \
43
+
--username <USERNAME> \
44
+
--password <PASSWORD> \
45
+
--cert-folder ~/kafkaCerts/ \
46
+
--host kafka-<name>.aivencloud.com \
47
+
--port 13041 \
48
+
--topic-name pizza-orders \
49
+
--nr-messages 0 \
50
+
--max-waiting-time 0
51
+
```
52
+
in ``PLAINTEXT`` security protocol:
39
53
```bash
40
54
python main.py \
41
55
--security-protocol plaintext \
@@ -46,7 +60,7 @@ python main.py \
46
60
--max-waiting-time 0
47
61
```
48
62
Where
49
-
*`security-protocol`: Security protocol for Kafka. PLAINTEXT or SSL are supported.
63
+
*`security-protocol`: Security protocol for Kafka. ``PLAINTEXT``, ``SSL`` or ``SASL_SSL`` are supported.
50
64
*`cert-folder`: points to the folder containing the Apache Kafka CA certificate, Access certificate and Access key (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)
parser.add_argument('--subject', help='What type of content to produce (possible choices are [pizza, userbehaviour, stock, realstock, metric] pizza is the default', required=False)
0 commit comments