GCP Dataproc工作流模板中Stackdriver日志属性配置位置问询
Hey there! Let me walk you through exactly where to place that Stackdriver logging property in your workflow template.
The dataproc:dataproc.logging.stackdriver.job.driver.enable=true setting belongs under a new properties section nested inside managedCluster.config—this is the dedicated spot for Dataproc-specific cluster configuration properties, including logging-related flags.
Here's your updated template with the property correctly added:
placement: managedCluster: clusterName: my-cluster config: gceClusterConfig: zoneUri: europe-west1-d masterConfig: machineTypeUri: n1-standard-4 workerConfig: machineTypeUri: n1-standard-4 numInstances: 10 properties: dataproc:dataproc.logging.stackdriver.job.driver.enable: "true"
A quick heads-up: Wrap the boolean value in quotes like I did above. YAML can be finicky with unquoted booleans in Dataproc templates, so this avoids any parsing errors when your workflow spins up the cluster.
内容的提问来源于stack exchange,提问作者Rolintocour

