Getting started
Install
dora
binaries using our installation pageCreate a new dataflow
dora new abc_project --lang python
cd abc_projectThis creates the following
abc_project
directory.
├── dataflow.yml
├── node_1
│ └── node_1.py
├── op_1
│ └── op_1.py
└── op_2
└── op_2.pyStart
dora-coordinator
and adora-deamon
dora up
Start your dataflow
dora start dataflow.yml --name first-dataflow
# Output: c95d118b-cded-4531-a0e4-cd85b7c3916cThe output is a randomly generated unique ID of the dataflow instance, which can be used to control it through the
dora
CLI. You can use--name
option to set a specific name for your dataflow.You can check the logs with:
dora logs first-dataflow custom-node_1
In this example, the output is going to be:
─────┬────────────────────────────────────────────────────────
│ Logs from custom-node_1.
─────┼────────────────────────────────────────────────────────
1 │ Node received:
2 │ id: tick,
3 │ value: None,
4 │ metadata: {'open_telemetry_context': ''}
5 │
─────┴────────────────────────────────────────────────────────Stop your dataflow
dora stop --name first-dataflow
(Pass the ID or name returned by
dora start
here.)You can then add or modify operators or nodes. For adding nodes easily, you can use the
dora
CLI again:- Run
dora new --kind operator --lang rust <name>
to create a new Rust operator named<name>
. - Run
dora new --kind custom-node --lang rust <name>
to create a new custom node named<name>
.
You need to add the created operators/nodes to your dataflow YAML file.
- Run