Playing around with Streaming and Rising Wave
This project is managed through invoke.
$ poetry install
$ inv --list
and serve yourself :)
$ cd docker
$ docker-compose up --build -d
After this, you should be able to access:
- Rising Wave UI: http://127.0.0.1:5691/
- Grafana: http://127.0.0.1:3001/
- Minio: http://127.0.0.1:9400/
- Username:
hummockadmin
- Password:
hummockadmin
- Username:
- Prometheus: http://127.0.0.1:9500/
- Redpanda Console: http://127.0.0.1:8080/
And connect to a local postgres instance with the arguments in .env
suffixed with RISING_WAVE
.
I'm assuming you already configured Rising Wave following the previous step!
As this in still under active development, there is not a single neat clean tidy entrypoint/CLI for this.
$ python src/rising_whale/kafka/main.py
After running this:
- You should have 1 topic created
- You should have 1 message in the topic
- The message's schema should be registered in RedPanda schema registry
Next:
- Connect to RisingWave database through your favorite SQL Client
- Allow Rising Wave to read from the topic and query from it:
CREATE SOURCE IF NOT EXISTS rising_whale_purchase
WITH (
connector='kafka',
topic='rising-whale-input',
properties.bootstrap.server='message_queue:29092',
) FORMAT PLAIN ENCODE AVRO (
schema.registry = 'http://message_queue:8081'
);
select *, _rw_kafka_timestamp from rising_whale_purchase;