All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.dataproc.model.ClusterConfig.html Maven / Gradle / Ivy







ClusterConfig (Cloud Dataproc API v1-rev20241025-2.0.0)












com.google.api.services.dataproc.model

Class ClusterConfig

    • Constructor Detail

      • ClusterConfig

        public ClusterConfig()
    • Method Detail

      • getAutoscalingConfig

        public AutoscalingConfig getAutoscalingConfig()
        Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
        Returns:
        value or null for none
      • setAutoscalingConfig

        public ClusterConfig setAutoscalingConfig(AutoscalingConfig autoscalingConfig)
        Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
        Parameters:
        autoscalingConfig - autoscalingConfig or null for none
      • getAuxiliaryNodeGroups

        public List<AuxiliaryNodeGroup> getAuxiliaryNodeGroups()
        Optional. The node group settings.
        Returns:
        value or null for none
      • setAuxiliaryNodeGroups

        public ClusterConfig setAuxiliaryNodeGroups(List<AuxiliaryNodeGroup> auxiliaryNodeGroups)
        Optional. The node group settings.
        Parameters:
        auxiliaryNodeGroups - auxiliaryNodeGroups or null for none
      • getConfigBucket

        public String getConfigBucket()
        Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per- location bucket (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.
        Returns:
        value or null for none
      • setConfigBucket

        public ClusterConfig setConfigBucket(String configBucket)
        Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per- location bucket (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.
        Parameters:
        configBucket - configBucket or null for none
      • getDataprocMetricConfig

        public DataprocMetricConfig getDataprocMetricConfig()
        Optional. The config for Dataproc metrics.
        Returns:
        value or null for none
      • setDataprocMetricConfig

        public ClusterConfig setDataprocMetricConfig(DataprocMetricConfig dataprocMetricConfig)
        Optional. The config for Dataproc metrics.
        Parameters:
        dataprocMetricConfig - dataprocMetricConfig or null for none
      • getEncryptionConfig

        public EncryptionConfig getEncryptionConfig()
        Optional. Encryption settings for the cluster.
        Returns:
        value or null for none
      • setEncryptionConfig

        public ClusterConfig setEncryptionConfig(EncryptionConfig encryptionConfig)
        Optional. Encryption settings for the cluster.
        Parameters:
        encryptionConfig - encryptionConfig or null for none
      • getEndpointConfig

        public EndpointConfig getEndpointConfig()
        Optional. Port/endpoint configuration for this cluster
        Returns:
        value or null for none
      • setEndpointConfig

        public ClusterConfig setEndpointConfig(EndpointConfig endpointConfig)
        Optional. Port/endpoint configuration for this cluster
        Parameters:
        endpointConfig - endpointConfig or null for none
      • getGceClusterConfig

        public GceClusterConfig getGceClusterConfig()
        Optional. The shared Compute Engine config settings for all instances in a cluster.
        Returns:
        value or null for none
      • setGceClusterConfig

        public ClusterConfig setGceClusterConfig(GceClusterConfig gceClusterConfig)
        Optional. The shared Compute Engine config settings for all instances in a cluster.
        Parameters:
        gceClusterConfig - gceClusterConfig or null for none
      • getGkeClusterConfig

        public GkeClusterConfig getGkeClusterConfig()
        Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes. These config settings are mutually exclusive with Compute Engine-based options, such as gce_cluster_config, master_config, worker_config, secondary_worker_config, and autoscaling_config.
        Returns:
        value or null for none
      • setGkeClusterConfig

        public ClusterConfig setGkeClusterConfig(GkeClusterConfig gkeClusterConfig)
        Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes. These config settings are mutually exclusive with Compute Engine-based options, such as gce_cluster_config, master_config, worker_config, secondary_worker_config, and autoscaling_config.
        Parameters:
        gkeClusterConfig - gkeClusterConfig or null for none
      • getInitializationActions

        public List<NodeInitializationAction> getInitializationActions()
        Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi
        Returns:
        value or null for none
      • setInitializationActions

        public ClusterConfig setInitializationActions(List<NodeInitializationAction> initializationActions)
        Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi
        Parameters:
        initializationActions - initializationActions or null for none
      • getLifecycleConfig

        public LifecycleConfig getLifecycleConfig()
        Optional. Lifecycle setting for the cluster.
        Returns:
        value or null for none
      • setLifecycleConfig

        public ClusterConfig setLifecycleConfig(LifecycleConfig lifecycleConfig)
        Optional. Lifecycle setting for the cluster.
        Parameters:
        lifecycleConfig - lifecycleConfig or null for none
      • getMasterConfig

        public InstanceGroupConfig getMasterConfig()
        Optional. The Compute Engine config settings for the cluster's master instance.
        Returns:
        value or null for none
      • setMasterConfig

        public ClusterConfig setMasterConfig(InstanceGroupConfig masterConfig)
        Optional. The Compute Engine config settings for the cluster's master instance.
        Parameters:
        masterConfig - masterConfig or null for none
      • getMetastoreConfig

        public MetastoreConfig getMetastoreConfig()
        Optional. Metastore configuration.
        Returns:
        value or null for none
      • setMetastoreConfig

        public ClusterConfig setMetastoreConfig(MetastoreConfig metastoreConfig)
        Optional. Metastore configuration.
        Parameters:
        metastoreConfig - metastoreConfig or null for none
      • getSecondaryWorkerConfig

        public InstanceGroupConfig getSecondaryWorkerConfig()
        Optional. The Compute Engine config settings for a cluster's secondary worker instances
        Returns:
        value or null for none
      • setSecondaryWorkerConfig

        public ClusterConfig setSecondaryWorkerConfig(InstanceGroupConfig secondaryWorkerConfig)
        Optional. The Compute Engine config settings for a cluster's secondary worker instances
        Parameters:
        secondaryWorkerConfig - secondaryWorkerConfig or null for none
      • getSecurityConfig

        public SecurityConfig getSecurityConfig()
        Optional. Security settings for the cluster.
        Returns:
        value or null for none
      • setSecurityConfig

        public ClusterConfig setSecurityConfig(SecurityConfig securityConfig)
        Optional. Security settings for the cluster.
        Parameters:
        securityConfig - securityConfig or null for none
      • getSoftwareConfig

        public SoftwareConfig getSoftwareConfig()
        Optional. The config settings for cluster software.
        Returns:
        value or null for none
      • setSoftwareConfig

        public ClusterConfig setSoftwareConfig(SoftwareConfig softwareConfig)
        Optional. The config settings for cluster software.
        Parameters:
        softwareConfig - softwareConfig or null for none
      • getTempBucket

        public String getTempBucket()
        Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project- level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.
        Returns:
        value or null for none
      • setTempBucket

        public ClusterConfig setTempBucket(String tempBucket)
        Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project- level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket (see Dataproc staging and temp buckets (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.
        Parameters:
        tempBucket - tempBucket or null for none
      • getWorkerConfig

        public InstanceGroupConfig getWorkerConfig()
        Optional. The Compute Engine config settings for the cluster's worker instances.
        Returns:
        value or null for none
      • setWorkerConfig

        public ClusterConfig setWorkerConfig(InstanceGroupConfig workerConfig)
        Optional. The Compute Engine config settings for the cluster's worker instances.
        Parameters:
        workerConfig - workerConfig or null for none
      • set

        public ClusterConfig set(String fieldName,
                                 Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public ClusterConfig clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy