Output from Dataproc Spark job in Google Cloud Logging

前端 未结 2 337
伪装坚强ぢ
伪装坚强ぢ 2021-01-17 11:23

Is there a way to have the output from Dataproc Spark jobs sent to Google Cloud logging? As explained in the Dataproc docs the output from the job driver (the master for a S

2条回答
  •  不思量自难忘°
    2021-01-17 11:49

    You can use the dataproc initialization actions for stackdriver for this:

    gcloud dataproc clusters create  \
        --initialization-actions gs:///stackdriver.sh \
        --scopes https://www.googleapis.com/auth/monitoring.write
    

提交回复
热议问题