3

We are using Apache Airflow's DataprocCreateClusterOperator to create Spark cluster on GCP(Dataproc) and wanted to enable Spark Web UI interfaces. When creating using terminal we pass --enable-component-gateway in the create cluster command. How can we achieve this using DataprocCreateClusterOperator

We tried adding belowendpoint_config(sample code below), but no luck.

"software_config" : {
.....,

   "endpoint_config" : {
   "enable_http_port_access" : "true"
   }
}
halfer
  • 19,824
  • 17
  • 99
  • 186
Anoop Deshpande
  • 514
  • 1
  • 6
  • 23

1 Answers1

1

According to the Dataproc REST API (Cluster, ClusterConfig, EndpointConfig), it should be

{
  "clusterName": ...,
  ...
  "config": {
    "endpointConfig": {
      "enableHttpPortAccess" : true
    },
    "softwareConfig": {
      ...
    },
    ...
  }
}
Dagang
  • 24,586
  • 26
  • 88
  • 133