I am trying to configure Airbnb AirFlow to use CeleryExecutor as follows:
I changed executer in airflow.cfg from SequentialExecutor to CeleryExecutor :
But I get the following error:
airflow.configuration.AirflowConfigException: error: cannot use sqlite with the CeleryExecutor
Note that sql_alchemy_conn configured as follows:
sql_alchemy_conn = sqlite:////root/airflow/airflow.db
I looked at Airflow GIT ( https://github.com/airbnb/airflow/blob/master/airflow/configuration.py )
and found that the following code throws this exception:
def _validate(self): if ( self.get("core", "executor") != 'SequentialExecutor' and "sqlite" in self.get('core', 'sql_alchemy_conn')): raise AirflowConfigException("error: cannot use sqlite with the {}". format(self.get('core', 'executor')))
It appears from this validate method that sql_alchemy_conn cannot contain sqlite .
Do you have an idea on how to configure CeleryExecutor without sqllite? note that I downloaded rabitMQ to work with CeleryExecuter as needed.
source share