airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mohamed younuskhan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-1395) sql_alchemy_conn_cmd does not work when executor is non SequentialExecutor
Date Mon, 10 Jul 2017 20:12:00 GMT
mohamed younuskhan created AIRFLOW-1395:
-------------------------------------------

             Summary: sql_alchemy_conn_cmd does not work when executor is non SequentialExecutor
                 Key: AIRFLOW-1395
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1395
             Project: Apache Airflow
          Issue Type: Bug
    Affects Versions: Airflow 1.8
         Environment: Linux
            Reporter: mohamed younuskhan
            Assignee: mohamed younuskhan


I was trying to use sql_alchemy_conn_cmd to proctect the postgress password. I am using LocalExecutor
as executor. Airflow initialization fails with below exception. It appears the it load the
default config and along with overridden environment variable. When executor was already overridden
and sql_alchemy_conn was set to defaul sqlite. The error check fails and throws below exception.

  File "<PATH>/bin/airflow", line 17, in <module>
    from airflow import configuration
  File "<PATH>/lib/python2.7/site-packages/airflow/__init__.py", line 29, in <module>
    from airflow import configuration as conf
  File "<PATH>/lib/python2.7/site-packages/airflow/configuration.py", line 784, in <module>
    conf.read(AIRFLOW_CONFIG)
  File "<PATH>/lib/python2.7/site-packages/airflow/configuration.py", line 636, in read
    self._validate()
  File "<PATH>/lib/python2.7/site-packages/airflow/configuration.py", line 548, in _validate
    self.get('core', 'executor')))
airflow.exceptions.AirflowConfigException: error: cannot use sqlite with the LocalExecutor



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message