Skip to content

Commit be45994

Browse files
STWangSTWang
authored andcommitted
fix path
1 parent a039bf8 commit be45994

3 files changed

Lines changed: 18 additions & 14 deletions

File tree

asap-tools/execution-utilities/asap_query_latency/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ export INSTALL_DIR=/scratch/sketch_db_for_prometheus
3434
cd ~/asap-internal/QueryEngineRust && cargo build --release
3535

3636
# data_exporter
37-
cd ~/asap-internal/ExecutionUtilities/clickhouse-benchmark-pipeline/data_exporter
37+
cd ~/ASAPQuery/asap-tools/execution-utilities/clickhouse-benchmark-pipeline/data_exporter
3838
cargo build --release
3939
```
4040

4141
### Download and chunk ClickBench data (one-time)
4242

4343
```bash
44-
cd ~/asap-internal/ExecutionUtilities/clickhouse-benchmark-pipeline
45-
python3 clickbench_importer/download_data.py
44+
cd ~/ASAPQuery/asap-tools/execution-utilities/clickhouse-benchmark-pipeline
45+
python3 benchmark_importer/download_data.py
4646

47-
DATA_DIR=~/asap-internal/ExecutionUtilities/clickhouse-benchmark-pipeline/clickbench_importer/data
47+
DATA_DIR=~/ASAPQuery/asap-tools/execution-utilities/clickhouse-benchmark-pipeline/benchmark_importer/data
4848
cd $DATA_DIR
4949
mv hits.json.gz hits_full.json.gz
5050
zcat hits_full.json.gz | head -n 1000000 | gzip > hits.json.gz
@@ -54,7 +54,7 @@ zcat hits_full.json.gz | head -n 1000000 | gzip > hits.json.gz
5454

5555
```bash
5656
pip3 install --user requests matplotlib numpy
57-
pip3 install --user ~/asap-internal/CommonDependencies/dependencies/py/promql_utilities/
57+
pip3 install --user ~/ASAPQuery/asap-common/dependencies/py/promql_utilities/
5858
```
5959

6060
---
@@ -111,7 +111,7 @@ python3 run_arroyosketch.py \
111111
--input_kafka_topic hits \
112112
--output_format json \
113113
--pipeline_name asap_hits_pipeline \
114-
--config_file_path ~/asap-internal/ExecutionUtilities/asap_query_latency/streaming_config.yaml \
114+
--config_file_path ~/ASAPQuery/asap-tools/execution-utilities/asap_query_latency/streaming_config.yaml \
115115
--output_kafka_topic sketch_topic \
116116
--output_dir ./outputs \
117117
--parallelism 1 \
@@ -124,8 +124,8 @@ python3 run_arroyosketch.py \
124124
cd ~/asap-internal/QueryEngineRust
125125
nohup ./target/release/query_engine_rust \
126126
--kafka-topic sketch_topic --input-format json \
127-
--config ~/asap-internal/ExecutionUtilities/asap_query_latency/inference_config.yaml \
128-
--streaming-config ~/asap-internal/ExecutionUtilities/asap_query_latency/streaming_config.yaml \
127+
--config ~/ASAPQuery/asap-tools/execution-utilities/asap_query_latency/inference_config.yaml \
128+
--streaming-config ~/ASAPQuery/asap-tools/execution-utilities/asap_query_latency/streaming_config.yaml \
129129
--http-port 8088 --delete-existing-db --log-level DEBUG \
130130
--output-dir ./output --streaming-engine arroyo \
131131
--query-language SQL --lock-strategy per-key \
@@ -137,7 +137,7 @@ nohup ./target/release/query_engine_rust \
137137
`data_exporter` reads all 1M records, transforms them (RFC3339 EventTime, stringify integer fields), sorts by EventTime, then sends to Kafka with event-time Kafka timestamps. This enables Arroyo's watermark to advance correctly for event-time windowing.
138138

139139
```bash
140-
cd ~/asap-internal/ExecutionUtilities/clickhouse-benchmark-pipeline
140+
cd ~/ASAPQuery/asap-tools/execution-utilities/clickhouse-benchmark-pipeline
141141
TOTAL_RECORDS=1000000 DATA_MODE=clickbench bash scripts/generate_data.sh
142142
```
143143

@@ -146,7 +146,7 @@ Wait for completion before running the benchmark.
146146
### Step 9 — Run ASAP benchmark
147147

148148
```bash
149-
cd ~/asap-internal/ExecutionUtilities/asap_query_latency
149+
cd ~/ASAPQuery/asap-tools/execution-utilities/asap_query_latency
150150
./run_benchmark.py \
151151
--mode asap \
152152
--sql-file asap_quantile_queries.sql \
@@ -165,7 +165,7 @@ $INSTALL_DIR/clickhouse client --query "SELECT count(*) FROM hits"
165165
Run the benchmark:
166166

167167
```bash
168-
cd ~/asap-internal/ExecutionUtilities/asap_query_latency
168+
cd ~/ASAPQuery/asap-tools/execution-utilities/asap_query_latency
169169
./run_benchmark.py \
170170
--mode baseline \
171171
--sql-file clickhouse_quantile_queries.sql \

asap-tools/execution-utilities/asap_query_latency/run_benchmark.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,12 @@ def load_clickbench_data(clickhouse_url: str):
167167
return True
168168

169169
# Load data from hits.json.gz
170-
data_file = Path(
171-
"/users/STWang/asap-internal/ExecutionUtilities/clickhouse-benchmark-pipeline/clickbench_importer/data/hits.json.gz"
170+
data_file = (
171+
Path(__file__).parent.parent
172+
/ "clickhouse-benchmark-pipeline"
173+
/ "benchmark_importer"
174+
/ "data"
175+
/ "hits.json.gz"
172176
)
173177
if not data_file.exists():
174178
print(f"✗ Data file not found: {data_file}")

asap-tools/execution-utilities/clickhouse-benchmark-pipeline/config.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ FAKE_NUM_COUNTERS=100
2121
# ClickBench Data
2222
CLICKBENCH_URL=https://datasets.clickhouse.com/hits_compatible/hits.json.gz
2323
CLICKBENCH_FILENAME=hits.json.gz
24-
CLICKBENCH_DATA_DIR=clickbench_importer/data
24+
CLICKBENCH_DATA_DIR=benchmark_importer/data
2525

2626
# Benchmark
2727
BENCHMARK_QUERIES_FILE=benchmark_queries.sql

0 commit comments

Comments
 (0)