Airflow 实验 API 调用方法不允许
Airflow experimental API call method not allowed
我正在使用 Airflow v1.10.2 并参考 experimental REST API documentation。当我尝试对
进行 API 调用时
GET /api/experimental/dags/<DAG_ID>/dag_runs
或
POST /api/experimental/dags/<DAG_ID>/dag_runs
我收到 405 错误。 API 调用的具体响应是,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>405 Method Not Allowed</title>
<h1>Method Not Allowed</h1>
<p>The method is not allowed for the requested URL.</p>
我在某处读到必须启用 RBAC UI,但我完全不知道这一点。在此请Airflow大神指教
这是 1.10.2
中的错误,将在本周发布的 1.10.3
中修复。
到那时您可以使用以下方法修复它:
通过修改 airflow.cfg
文件启用 RBAC UI。
在 [webserver]
部分下,将 rbac = False
更改为 rbac = True
请注意,您必须按照 https://airflow.apache.org/security.html?highlight=rbac#password
创建一个用户
我正在使用 Airflow v1.10.2 并参考 experimental REST API documentation。当我尝试对
进行 API 调用时GET /api/experimental/dags/<DAG_ID>/dag_runs
或
POST /api/experimental/dags/<DAG_ID>/dag_runs
我收到 405 错误。 API 调用的具体响应是,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>405 Method Not Allowed</title>
<h1>Method Not Allowed</h1>
<p>The method is not allowed for the requested URL.</p>
我在某处读到必须启用 RBAC UI,但我完全不知道这一点。在此请Airflow大神指教
这是 1.10.2
中的错误,将在本周发布的 1.10.3
中修复。
到那时您可以使用以下方法修复它:
通过修改 airflow.cfg
文件启用 RBAC UI。
在 [webserver]
部分下,将 rbac = False
更改为 rbac = True
请注意,您必须按照 https://airflow.apache.org/security.html?highlight=rbac#password
创建一个用户