-
Notifications
You must be signed in to change notification settings - Fork 36
/
commands.sh
44 lines (36 loc) · 917 Bytes
/
commands.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
export PGHOST=localhost
export PGPORT=4566
export PGUSER=root
export PGDATABASE=dev
# Seed trip data from the parquet file
seed-kafka() {
./seed_kafka.py
}
# Seed trip data from the parquet file
stream-kafka() {
./seed_kafka.py update
}
# TODO: Command to create ALL ddls.
# TODO: Command + script to send kafka updates.
# Starts the risingwave cluster
start-cluster() {
docker-compose -f docker/docker-compose.yml up -d
}
# Stops the risingwave cluster
stop-cluster() {
docker-compose -f docker/docker-compose.yml down
}
# Cleans the risingwave cluster
clean-cluster() {
docker-compose -f docker/docker-compose.yml down -v
}
# Starts the clickhouse client.
# You can run files like:
# clickhouse-client < file.sql
clickhouse-client() {
docker exec -i clickhouse clickhouse-client
}
# Starts an interactive clickhouse session.
clickhouse-client-term() {
docker exec -it clickhouse clickhouse-client
}