-
아래처럼만 나오고 제대로된 log가 안뜬다..
*** Log file does not exist: /opt/bitnami/airflow/logs/tutorial/hello_task/2021-11-05T06:36:04.378967+00:00/1.log *** Fetching from: http://ac8721e912e5:8793/log/tutorial/hello_task/2021-11-05T06:36:04.378967+00:00/1.log *** !!!! Please make sure that all your Airflow components (e.g. schedulers, webservers and workers) have the same 'secret_key' configured in 'webserver' section !!!!! ****** See more at https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#secret-key ****** Failed to fetch log file from worker. 403 Client Error: FORBIDDEN for url: http://ac8721e912e5:8793/log/tutorial/hello_task/2021-11-05T06:36:04.378967+00:00/1.log For more information check: https://httpstatuses.com/403
아래 링크에 가면 그냥 Environment Variables만 알려주고 무슨 값을 넣어야하는지도 안알려준다. ㅡㅡ
https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#secret-key
그러던 와중에 아래 사이트에서 그냥 진짜 랜덤값 넣어주면 돼! 라고했다.
그냥 아래 명령어로 랜덤값을 얻어서 Environment Variables에 입력한다.
python -c 'import os; print(os.urandom(16))'
그럼 아래와같이 잘 뜬다.
[생략..] [2021-11-05, 06:39:15 UTC] {python.py:152} INFO - Done. Returned value was: Hello world! [2021-11-05, 06:39:15 UTC] {taskinstance.py:1270} INFO - Marking task as SUCCESS. dag_id=tutorial, task_id=hello_task, execution_date=20211105T063913, start_date=20211105T063915, end_date=20211105T063915 [2021-11-05, 06:39:15 UTC] {local_task_job.py:154} INFO - Task exited with return code 0 [2021-11-05, 06:39:15 UTC] {local_task_job.py:264} INFO - 2 downstream tasks scheduled from follow-on schedule check
'2021년 > 21.下' 카테고리의 다른 글
Build a Steam Game Recomend Model (1/?) - 데이터 수집 경로 결정하기 (5) 2021.12.08 airflow 설치 기록용... (0) 2021.11.05 windows 10에서 ubutu 사용하기 (0) 2021.11.04 [docker error] WSL 2 installation is incomplete. (0) 2021.11.04 Prefect (0) 2021.10.18