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 diff --git a/README.md b/README.md index e0b5f0f..f54d3f7 100644 --- a/README.md +++ b/README.md @@ -208,23 +208,20 @@ And you should see this: ### Start the standalone instance ```shell -chmod +x run-local-connector.sh -./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. ### 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 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=.