【问题标题】:How to enable Spark web interface on Dataproc(GCP) using DataprocCreateClusterOperator of Apache Airflow如何使用 Apache Airflow 的 DataprocCreateClusterOperator 在 Dataproc(GCP) 上启用 Spark Web 界面
【发布时间】:2022-07-15 06:10:00
【问题描述】:

我们正在使用 Apache Airflow 的 DataprocCreateClusterOperator 在 GCP(Dataproc) 上创建 Spark 集群,并希望启用 Spark Web UI 界面。使用终端创建时,我们在创建集群命令中传递--enable-component-gateway。我们如何使用DataprocCreateClusterOperator 实现这一目标

我们尝试在下面添加endpoint_config(下面的示例代码),但没有成功。

"software_config" : {
.....,

   "endpoint_config" : {
   "enable_http_port_access" : "true"
   }
}

【问题讨论】:

    标签: airflow google-cloud-dataproc dataproc


    【解决方案1】:

    根据 Dataproc REST API(ClusterClusterConfigEndpointConfig),应该是

    {
      "clusterName": ...,
      ...
      "config": {
        "endpointConfig": {
          "enableHttpPortAccess" : true
        },
        "softwareConfig": {
          ...
        },
        ...
      }
    }
    

    【讨论】:

      猜你喜欢
      • 2016-01-16
      • 2023-03-25
      • 2020-07-19
      • 1970-01-01
      • 2020-07-24
      • 2022-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多