-
Notifications
You must be signed in to change notification settings - Fork 13
Updates for 0.7.2 #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # Kafka to Local Iceberg Warehouse Using DataSQRL | ||
|
|
||
| This project demonstrates how to use [DataSQRL](https://datasqrl.com) to build a streaming pipeline that: | ||
|
|
||
| - Reads data from a Kafka topic | ||
| - Writes data to an Iceberg table locally | ||
|
|
||
| ## 🐳 Running DataSQRL | ||
|
|
||
| Run the following command from the project root where your `package.json` and SQRL scripts reside: | ||
| ```bash | ||
| docker run -it --rm -p 8888:8888 -p 8081:8081 -p 9092:9092 -v $PWD:/build datasqrl/cmd:latest run -c package.json | ||
| ``` | ||
|
|
||
| ## Generate Data | ||
|
|
||
| * Go to `data-generator` folder | ||
| * `python3 load_data.py <jsonl_file> <topic_name>` | ||
| * To send Contact data | ||
| ```bash | ||
| python3 load_data.py contacts.jsonl contacts | ||
| ``` | ||
|
|
||
| ## Output | ||
|
|
||
| * There should be iceberg files and folders generated in `$PWD/warehouse` directory | ||
| * Data for the output table will reside in `MyContacts` (as defined in the sqrl script) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| IMPORT kafka-source.Contact AS _Contacts; | ||
|
|
||
| MyContacts := SELECT id, firstname, lastname, last_updated FROM _Contacts; |
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say to lock the version, that way we know it needs to be bumped and to run CI to validate the change