airflow-operator

Override Airflow's default admin index page

此生再无相见时 提交于 2021-02-11 16:49:57
问题 I have created a Airflow plugin which creates a new Menu named Test Plugin and add a submenu Test View so clicking the Test View open the page successfully and show me the content in test.html page. Currently Airflow displays the landing page on the url http://localhost:8080/admin/ with all Dags listed. My requirement is to show this test.html page as the landing page/home page. The structure of is as follows: -AIRFLOW_HOME/plugins/templates/test_plugin/test.html -AIRFLOW_HOME/plugins/test

Override Airflow's default admin index page

大城市里の小女人 提交于 2021-02-11 16:47:49
问题 I have created a Airflow plugin which creates a new Menu named Test Plugin and add a submenu Test View so clicking the Test View open the page successfully and show me the content in test.html page. Currently Airflow displays the landing page on the url http://localhost:8080/admin/ with all Dags listed. My requirement is to show this test.html page as the landing page/home page. The structure of is as follows: -AIRFLOW_HOME/plugins/templates/test_plugin/test.html -AIRFLOW_HOME/plugins/test

Airflow log file exception

安稳与你 提交于 2020-08-10 20:17:12
问题 I am using apache airflow for running my dags. I am getting an exception as: *** Log file does not exist: /opt/airflow/logs/download2/download2/2020-07-26T15:00:00+00:00/1.log *** Fetching from: http://fb3393f5f01e:8793/log/download2/download2/2020-07-26T15:00:00+00:00/1.log *** Failed to fetch log file from worker. HTTPConnectionPool(host='fb3393f5f01e', port=8793): Max retries exceeded with url: /log/download2/download2/2020-07-26T15:00:00+00:00/1.log (Caused by NewConnectionError('<urllib3

Airflow log file exception

泄露秘密 提交于 2020-08-10 20:14:08
问题 I am using apache airflow for running my dags. I am getting an exception as: *** Log file does not exist: /opt/airflow/logs/download2/download2/2020-07-26T15:00:00+00:00/1.log *** Fetching from: http://fb3393f5f01e:8793/log/download2/download2/2020-07-26T15:00:00+00:00/1.log *** Failed to fetch log file from worker. HTTPConnectionPool(host='fb3393f5f01e', port=8793): Max retries exceeded with url: /log/download2/download2/2020-07-26T15:00:00+00:00/1.log (Caused by NewConnectionError('<urllib3

Airflow:S3FileTransformOperator:Python Script runs fine in local but NOT in S3FileTransformOperator:Tried different approach

♀尐吖头ヾ 提交于 2020-07-10 10:26:28
问题 Requirement: Edit the S3 file for the last row and remove double-quotes and extra pipeline and upload it back the same file back to s3 path Operator cleanup = S3FileTransformOperator( task_id='cleanup', source_s3_key='s3://path/outbound/incoming.txt', dest_s3_key='s3://path/outbound/incoming.txt', replace=True, transform_script='/usr/local/airflow/dags/scripts/clean_up.py' ) > Method 1 Approach Issue: Able to run the python script locally and but while running in Airflow it threw an error as