मैं Airbnb हवा का प्रवाह कॉन्फ़िगर करने के लिए इस तरह CeleryExecutor इस्तेमाल करने की कोशिश के साथ काम करने वायु प्रवाह को विन्यस्त:CeleryExecutor
मैं CeleryExecutor
को SequentialExecutor
से airflow.cfg में executer
बदल दिया है:
# The executor class that airflow should use. Choices include
# SequentialExecutor, LocalExecutor, CeleryExecutor
executor = CeleryExecutor
लेकिन मैं मिलता है निम्न त्रुटि:
airflow.configuration.AirflowConfigException: error: cannot use sqlite with the CeleryExecutor
ध्यान दें कि sql_alchemy_conn
इस तरह कॉन्फ़िगर किया गया है:
sql_alchemy_conn = sqlite:////root/airflow/airflow.db
मैं वायु प्रवाह के GIT (https://github.com/airbnb/airflow/blob/master/airflow/configuration.py)
पर देखा और पाया कि निम्न कोड इस अपवाद फेंकता है:
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')))
यह इस validate
विधि है कि sql_alchemy_conn
sqlite
शामिल नहीं हो सकता से लगता है।
क्या आपको कोई विचार है कि CeleryExecutor
बिना SQL के कॉन्फ़िगर कैसे करें? कृपया ध्यान दें कि मैंने आवश्यकतानुसार CeleryExecuter के साथ काम करने के लिए rabitMQ डाउनलोड किया है।
क्या मुझे पता है कि postgresql – abhijeetmote
@abhijeetmote msql कनेक्शन स्ट्रिंग sqlalchemy के लिए mysql कनेक्शन जोड़ने के लिए कैसे हो सकता है 'mysql: // उपयोगकर्ता नाम: पासवर्ड @ होस्टनाम: पोर्ट/डेटाबेस_नाम' – nehiljain