Apache Airflow + Python 3.6 + Local Executor + Mysql as a metadata database

Airflow version 1.8 Python version 3.6 i am getting No module named 'MySQLdb' error when i configure the Airflow with LocalExecutor and Mysql as metadata database. i am not able to install the MySQLdb package due to version issue.

anyone having idea how to solve this issue?

Thanks Kalanidhi

- - Source


answered 5 day ago Kalanidhi G #1

after configuring airflow.cfg like sql_alchemy_conn = mysql+pymysql://airflowuser:[email protected]:3306/airflowdb its started working. Actually here i am using pymysql package instead of MySQLdb package(@joeb: - it seems MySQLdb package not supporting python 3+ version)

comments powered by Disqus