Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Docker Compose is not considering environment variables #61

Closed
vrajat opened this issue Jul 14, 2021 · 0 comments · Fixed by #62
Closed

Docker Compose is not considering environment variables #61

vrajat opened this issue Jul 14, 2021 · 0 comments · Fixed by #62

Comments

@vrajat
Copy link
Member

vrajat commented Jul 14, 2021

If you want to use an external Postgres database, replace the following parameters in tokern-lineage-engine.yml:

  • CATALOG_HOST
  • CATALOG_USER
  • CATALOG_PASSWORD
  • CATALOG_DB

This was my first approach but it wasn't working..Here are my observations:

  1. catalog.add_source() was adding source values into demo catalog despite of values given for external host in tokern-lineage-engine.yml file.
  2. catalog.scan_source() was erroring out with the same error shown above: psycopg2.OperationalError: could not translate host name "" to address: Temporary failure in name resolution

Values provided for External Catalog:

  CATALOG_PASSWORD: t@st_passw0rd
  CATALOG_USER: catalog_test
  CATALOG_DB: tokern
  CATALOG_HOST: "127.0.0.1"

Originally posted by @siva-mudiyanur in #57 (comment)

vrajat added a commit to vrajat/data-lineage that referenced this issue Jul 14, 2021
The file was ignoring environment variables passed through
docker-compose command.

Also the command-line wrongly accepted CATALOG_PORT for --catalog-db
option.

Update README to provide more information on connecting to an external
postgres.

Update version to 0.7.7

Fix tokern#61
vrajat added a commit that referenced this issue Jul 14, 2021
The file was ignoring environment variables passed through
docker-compose command.

Also the command-line wrongly accepted CATALOG_PORT for --catalog-db
option.

Update README to provide more information on connecting to an external
postgres.

Update version to 0.7.7

Fix #61
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant