You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jack (JIRA)" <ji...@apache.org> on 2018/08/21 12:02:00 UTC

[jira] [Commented] (AIRFLOW-1395) sql_alchemy_conn_cmd does not work when executor is non SequentialExecutor

    [ https://issues.apache.org/jira/browse/AIRFLOW-1395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16587331#comment-16587331 ] 

jack commented on AIRFLOW-1395:
-------------------------------

Your error says you are trying to work with SQLite & LocalExecutor - +which you can't.+

For LocalExecutor  you need to use PostgreSQL or MySQL.

Your title isn't related to the details of the error.

> 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
>            Priority: Major
>
> 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
(v7.6.3#76005)