Skip to content

Commit 3833f0d

Browse files
added Francesco's review
1 parent 5e8dd20 commit 3833f0d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README-gitpod.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ This workspace comes with some pre-installed stuff for you :
44

55
* Python requirements have already been installed
66
* avn CLI has already been installed
7+
* jq has benn installed
78

89
First make sure to have an Aiven account, otherwise you are just a few clicks away of creating one [here](https://console.aiven.io/signup?utm_source=github&utm_medium=organic&utm_campaign=blog_art&utm_content=post)
910

@@ -48,14 +49,10 @@ Retrieve your host and port from the console and set them :
4849
And retrieve the Apache Kafka Service URI with
4950

5051
```bash
51-
avn service get $KAFKA_INSTANCE_NAME --format '{service_uri}'
52-
```
5352

54-
The Apache Kafka Service URI is in the form `hostname:port` and provides the `hostname` and `port`, extract them as variables :
53+
KAFKA_HOST=$(avn service get $KAFKA_INSTANCE_NAME --json | jq -r '.service_uri_params.host')
54+
KAFKA_PORT=$(avn service get $KAFKA_INSTANCE_NAME --json | jq -r '.service_uri_params.port')
5555

56-
```bash
57-
KAFKA_HOST=hostname
58-
KAFKA_PORT=port
5956
```
6057

6158
You can wait for the newly created Apache Kafka instance to be ready with :
@@ -87,3 +84,5 @@ python main.py \
8784
--subject pizza
8885

8986
```
87+
88+
You should see a continuous flow of data being pushed to Apache Kafka, to the topic defined by the `--topic-name` parameter. You can either use the Aiven console, or tools like [kcat](https://docs.aiven.io/docs/products/kafka/howto/kcat) to browse the data.

0 commit comments

Comments
 (0)