ambari-airflow-mpack
ambari-airflow-mpack copied to clipboard
Service not installed properly
I installed the mpack, but then Ambari interface doesn't seems to setup the airflow service correctly. Any ideas ? Also, is it possible to init a database different from the sqlite default one ?
Hi,
same here after. Also why did I need to setup Spark 1.6 even if Spark2 is already setup.
Try using the version with 1.9 and found here (https://github.com/miho120/ambari-airflow-mpack/raw/6ac868d37d3882bf8570cdcfe7069fd582e10cb9/airflow-service-mpack.tar.gz) and work but service failed to start with error: Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/AIRFLOW/1.9.0/package/scripts/airflow_worker_control.py", line 54, in <module> AirflowWorker().execute() File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 375, in execute method(env) File "/var/lib/ambari-agent/cache/common-services/AIRFLOW/1.9.0/package/scripts/airflow_worker_control.py", line 33, in start self.configure(env) File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 120, in locking_configure original_configure(obj, *args, **kw) File "/var/lib/ambari-agent/cache/common-services/AIRFLOW/1.9.0/package/scripts/airflow_worker_control.py", line 29, in configure airflow_make_systemd_scripts_worker(env) File "/var/lib/ambari-agent/cache/common-services/AIRFLOW/1.9.0/package/scripts/airflow_setup.py", line 107, in airflow_make_systemd_scripts_worker with open("/etc/systemd/system/multi-user.target.wants/airflow-worker.service", 'w') as configFile: IOError: [Errno 2] No such file or directory: '/etc/systemd/system/multi-user.target.wants/airflow-worker.service'.
Thanks
@belgacea which version of ambari, OS, and HDP do you have? It's a good point to create initiamb action in ambari?
@miho120 CentOS Linux release 7.5.1804 (Core) / Ambari 2.6.2.0 / HDP-2.6.5.0 I'll look for setting up a custom database later.
After installing I see the issue. I'll fix it soon. Also planning to add initdb action.
Hi @belgacea
The issue has been fixed in version 1.5.4.
Also added a possibility to init DB manually any time straight from ambari.
@mdiouf Could you try with the new version? If not, please let me know which version of ambari, OS, and HDP do you use.