From 51ef523142efbda87e441763f4df2e32a963570b Mon Sep 17 00:00:00 2001 From: "David A. Ventimiglia" Date: Mon, 23 Sep 2024 11:17:18 -0700 Subject: [PATCH 1/4] Made several shell snippets one-liners In my experience, this is more reliable, but do with it what you will. --- README.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e0b5f0f..b0ec4a3 100644 --- a/README.md +++ b/README.md @@ -208,7 +208,6 @@ And you should see this: ### Start the standalone instance ```shell -chmod +x run-local-connector.sh ./run-local-connector.sh file ``` You can start any adapter by using the names of the adapter with the `./adapters` directory. @@ -216,15 +215,13 @@ You can start any adapter by using the names of the adapter with the `./adapters ### Create a Supergraph ```shell -ddn supergraph init test-connector -cd test-connector +ddn supergraph init test-connector && cd test-connector ``` ### Create the connector HML file ```shell -ddn connector-link add calcite --configure-host http://local.hasura.dev:8080 -sed -i.bak -e '11,13d' ./app/metadata/calcite.hml +ddn connector-link add calcite --configure-host http://local.hasura.dev:8080 && sed -i.bak -e '11,13d' ./app/metadata/calcite.hml ``` ### Start the Supergraph ```shell @@ -242,8 +239,7 @@ ddn supergraph build local ### Restart the Supergraph ```shell -docker compose down -ddn run docker-start +docker compose down && ddn run docker-start ``` ### View in console From e57bca89d62860b1a0ee170aaad65f0ee809d150 Mon Sep 17 00:00:00 2001 From: "David A. Ventimiglia" Date: Mon, 23 Sep 2024 11:19:29 -0700 Subject: [PATCH 2/4] Fixed what I believe is a typo consol -> console --- run-connector-local.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-connector-local.sh b/run-connector-local.sh index fc79513..abe921b 100755 --- a/run-connector-local.sh +++ b/run-connector-local.sh @@ -1,2 +1,2 @@ cd adapters/$1 -OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 OTEL_SERVICE_NAME=app_calcite LOG_LEVEL=debug OTEL_METRICS_EXPORTER=console OTEL_TRACES_EXPORTER=console OTEL_LOG_EXPORTER=consol RUST_LOG=info cargo run --package ndc-calcite --bin ndc-calcite -- serve --configuration=. \ No newline at end of file +OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 OTEL_SERVICE_NAME=app_calcite LOG_LEVEL=debug OTEL_METRICS_EXPORTER=console OTEL_TRACES_EXPORTER=console OTEL_LOG_EXPORTER=console RUST_LOG=info cargo run --package ndc-calcite --bin ndc-calcite -- serve --configuration=. From 96ab0695524105cf929cd092c0829ad60b1718c4 Mon Sep 17 00:00:00 2001 From: "David A. Ventimiglia" Date: Mon, 23 Sep 2024 11:19:54 -0700 Subject: [PATCH 3/4] Fixed what I believe is a typo run-local-connector.sh -> run-connector-local.sh --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b0ec4a3..f54d3f7 100644 --- a/README.md +++ b/README.md @@ -208,7 +208,7 @@ And you should see this: ### Start the standalone instance ```shell -./run-local-connector.sh file +./run-connector-local.sh file ``` You can start any adapter by using the names of the adapter with the `./adapters` directory. From 204b9fdb67e29af04e88cad5888034728c3c69ca Mon Sep 17 00:00:00 2001 From: "David A. Ventimiglia" Date: Tue, 24 Sep 2024 08:31:34 -0700 Subject: [PATCH 4/4] Ignoring generated files --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 847e491..2cf26f0 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ target/ /adapters/hive/hadoop_data/ /test-connector/ +adapters/file/data/files/ +adapters/file/dev.local.configuration.json