Search code examples
google-compute-enginestackdrivergoogle-cloud-stackdrivergoogle-cloud-logging

How to disable logs for whole cluster in gce


Could it be possible for already created (Yarn/Hadoop) cluster to disable logging for all servers inside ?

I can't find anything like it. Is there anything in Dataproc or Compute Engine which can help me to disable the logs ?


Solution

  • With little help and suggestion from Google support, there is complete solution to skip logging for whole yarn/hadoop cluster. That can be possible only when create new cluster from dataproc either by google cloud page or console. Property which should to be set in cluster properties filed: dataproc:dataproc.logging.stackdriver.enable to be false

    dataproc cluster properties

    More info at: https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/cluster-properties

    If you create cluster through console you can referral https://cloud.google.com/sdk/gcloud/reference/dataproc/clusters/create#--properties and to use command like:

     gcloud.cmd --properties 'dataproc:dataproc.logging.stackdriver.enable=false'