configuring Airflow to work with CeleryExecutor -


i try configure airbnb airflow use celeryexecutor this:

i changed executer in airflow.cfg sequentialexecutor celeryexecutor:

# executor class airflow should use. choices include # sequentialexecutor, localexecutor, celeryexecutor executor = celeryexecutor 

but following error:

airflow.configuration.airflowconfigexception: error: cannot use sqlite celeryexecutor 

note sql_alchemy_conn configured this:

sql_alchemy_conn = sqlite:////root/airflow/airflow.db 

i looked @ airflow's git (https://github.com/airbnb/airflow/blob/master/airflow/configuration.py)

and found following code throws exception:

def _validate(self):         if (                 self.get("core", "executor") != 'sequentialexecutor' ,                 "sqlite" in self.get('core', 'sql_alchemy_conn')):             raise airflowconfigexception("error: cannot use sqlite {}".                 format(self.get('core', 'executor'))) 

it seems validate method sql_alchemy_conn cannot contain sqlite.

do have idea how configure celeryexecutor without sqllite? please note downloaded rabitmq working celeryexecuter required.

it said airflow celeryexecutor requires other backend default database sqlite. have use mysql or postgresql, example.

the sql_alchemy_conn in airflow.cfg must changed follow sqlalchemy connection string structure (see sqlalchemy document)

for example,

sql_alchemy_conn = postgresql+psycopg2://airflow:airflow@127.0.0.1:5432/airflow 

Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

c# - DotNetOpenAuth OAuth2 for Basecamp API -