You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/11/20 20:45:40 UTC

[GitHub] [airflow] kaxil edited a comment on issue #11149: SQL Alchemy Conn Secret Fails to parse

kaxil edited a comment on issue #11149:
URL: https://github.com/apache/airflow/issues/11149#issuecomment-731398618


   I was not able to reproduce this.
   
   I added the following key in Hashicorp Vault:
   
   ```
   ❯ vault kv put secret/config/sql_alchemy_conn value=sqlite:////Users/airflow/airflow/airflow.db
   Key              Value
   ---              -----
   created_time     2020-11-20T20:05:21.517705Z
   deletion_time    n/a
   destroyed        false
   version          1
   ```
   
   and set the following environment Variables:
   
   ```
   ❯ env | grep AIRFLOW
   AIRFLOW__CORE__SQL_ALCHEMY_CONN_SECRET=sql_alchemy_conn
   AIRFLOW__SECRETS__BACKEND=airflow.contrib.secrets.hashicorp_vault.VaultBackend
   AIRFLOW__SECRETS__BACKEND_KWARGS='{"url":"http://127.0.0.1:8200","auth_type":"token", "token": "s.BddaHiiDdddpW6gNnqtd9lJ"}'
   AIRFLOW__CORE__EXECUTOR=SequentialExecutor
   ```
   
   Only if I try to use `LocalExecutor`, I get the following error:
   
   ```
   airflow.exceptions.AirflowConfigException: error: cannot use sqlite with the LocalExecutor
   ```
   
   which is a correct error since I am trying to use `LocalExecutor` with `sqlite`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org