Skip to content

Commit

Permalink
fix cli example
Browse files Browse the repository at this point in the history
  • Loading branch information
YangKian committed Jan 12, 2024
1 parent 17b3964 commit 993e98d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/start/get-started-with-kafka-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ hstream-kafka produce demo --separator "@" -i
- Using `-i` option to enter the interactive mode.

```sh
info@This is a info level log.
warn@This is a warn level log.
fruit@apple
animal@cat
hello hstream!
```
Here we have written three pieces of data. The first two are associated with specified key. The last one does not specify a key.
Expand All @@ -139,9 +139,9 @@ hstream-kafka consume --group-id test-group --topic demo --earliest --verbose --
- Using the `--verbose` option will print the creation timestamp and the key of the record. The `--eof` option will tell the consumer to exit after receiving the last message in the partition.

```sh
CreateTimestamp: 1705026820718 Key: info This is a info level log.
CreateTimestamp: 1705026820718 Key: fruit apple
CreateTimestamp: 1705026912306 Key: hello hstream!
CreateTimestamp: 1705026833287 Key: warn This is a warn level log.
CreateTimestamp: 1705026833287 Key: animal cat
EOF reached for all 3 partition(s)
Consumed 3 messages (62 bytes)
```
Expand Down

0 comments on commit 993e98d

Please sign in to comment.