public static final class ClusterConfig.Builder extends GeneratedMessageV3.Builder<ClusterConfig.Builder> implements ClusterConfigOrBuilder
The cluster config.Protobuf type
google.cloud.dataproc.v1.ClusterConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ClusterConfig.Builder>
public ClusterConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ClusterConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ClusterConfig.Builder>
public ClusterConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ClusterConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ClusterConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ClusterConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ClusterConfig.Builder>
public ClusterConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ClusterConfig.Builder>
public ClusterConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ClusterConfig.Builder>
public ClusterConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ClusterConfig.Builder>
public ClusterConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ClusterConfig.Builder>
public ClusterConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ClusterConfig.Builder>
public ClusterConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ClusterConfig.Builder>
public ClusterConfig.Builder mergeFrom(ClusterConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ClusterConfig.Builder>
public ClusterConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ClusterConfig.Builder>
java.io.IOException
public java.lang.String getConfigBucket()
Optional. A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then it will create and manage this project-level, per-location bucket for you.
string config_bucket = 1;
getConfigBucket
in interface ClusterConfigOrBuilder
public ByteString getConfigBucketBytes()
Optional. A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then it will create and manage this project-level, per-location bucket for you.
string config_bucket = 1;
getConfigBucketBytes
in interface ClusterConfigOrBuilder
public ClusterConfig.Builder setConfigBucket(java.lang.String value)
Optional. A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then it will create and manage this project-level, per-location bucket for you.
string config_bucket = 1;
public ClusterConfig.Builder clearConfigBucket()
Optional. A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then it will create and manage this project-level, per-location bucket for you.
string config_bucket = 1;
public ClusterConfig.Builder setConfigBucketBytes(ByteString value)
Optional. A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then it will create and manage this project-level, per-location bucket for you.
string config_bucket = 1;
public boolean hasGceClusterConfig()
Required. The shared Google Compute Engine config settings for all instances in a cluster.
.google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8;
hasGceClusterConfig
in interface ClusterConfigOrBuilder
public GceClusterConfig getGceClusterConfig()
Required. The shared Google Compute Engine config settings for all instances in a cluster.
.google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8;
getGceClusterConfig
in interface ClusterConfigOrBuilder
public ClusterConfig.Builder setGceClusterConfig(GceClusterConfig value)
Required. The shared Google Compute Engine config settings for all instances in a cluster.
.google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8;
public ClusterConfig.Builder setGceClusterConfig(GceClusterConfig.Builder builderForValue)
Required. The shared Google Compute Engine config settings for all instances in a cluster.
.google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8;
public ClusterConfig.Builder mergeGceClusterConfig(GceClusterConfig value)
Required. The shared Google Compute Engine config settings for all instances in a cluster.
.google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8;
public ClusterConfig.Builder clearGceClusterConfig()
Required. The shared Google Compute Engine config settings for all instances in a cluster.
.google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8;
public GceClusterConfig.Builder getGceClusterConfigBuilder()
Required. The shared Google Compute Engine config settings for all instances in a cluster.
.google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8;
public GceClusterConfigOrBuilder getGceClusterConfigOrBuilder()
Required. The shared Google Compute Engine config settings for all instances in a cluster.
.google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8;
getGceClusterConfigOrBuilder
in interface ClusterConfigOrBuilder
public boolean hasMasterConfig()
Optional. The Google Compute Engine config settings for the master instance in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9;
hasMasterConfig
in interface ClusterConfigOrBuilder
public InstanceGroupConfig getMasterConfig()
Optional. The Google Compute Engine config settings for the master instance in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9;
getMasterConfig
in interface ClusterConfigOrBuilder
public ClusterConfig.Builder setMasterConfig(InstanceGroupConfig value)
Optional. The Google Compute Engine config settings for the master instance in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9;
public ClusterConfig.Builder setMasterConfig(InstanceGroupConfig.Builder builderForValue)
Optional. The Google Compute Engine config settings for the master instance in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9;
public ClusterConfig.Builder mergeMasterConfig(InstanceGroupConfig value)
Optional. The Google Compute Engine config settings for the master instance in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9;
public ClusterConfig.Builder clearMasterConfig()
Optional. The Google Compute Engine config settings for the master instance in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9;
public InstanceGroupConfig.Builder getMasterConfigBuilder()
Optional. The Google Compute Engine config settings for the master instance in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9;
public InstanceGroupConfigOrBuilder getMasterConfigOrBuilder()
Optional. The Google Compute Engine config settings for the master instance in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9;
getMasterConfigOrBuilder
in interface ClusterConfigOrBuilder
public boolean hasWorkerConfig()
Optional. The Google Compute Engine config settings for worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10;
hasWorkerConfig
in interface ClusterConfigOrBuilder
public InstanceGroupConfig getWorkerConfig()
Optional. The Google Compute Engine config settings for worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10;
getWorkerConfig
in interface ClusterConfigOrBuilder
public ClusterConfig.Builder setWorkerConfig(InstanceGroupConfig value)
Optional. The Google Compute Engine config settings for worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10;
public ClusterConfig.Builder setWorkerConfig(InstanceGroupConfig.Builder builderForValue)
Optional. The Google Compute Engine config settings for worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10;
public ClusterConfig.Builder mergeWorkerConfig(InstanceGroupConfig value)
Optional. The Google Compute Engine config settings for worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10;
public ClusterConfig.Builder clearWorkerConfig()
Optional. The Google Compute Engine config settings for worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10;
public InstanceGroupConfig.Builder getWorkerConfigBuilder()
Optional. The Google Compute Engine config settings for worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10;
public InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder()
Optional. The Google Compute Engine config settings for worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10;
getWorkerConfigOrBuilder
in interface ClusterConfigOrBuilder
public boolean hasSecondaryWorkerConfig()
Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12;
hasSecondaryWorkerConfig
in interface ClusterConfigOrBuilder
public InstanceGroupConfig getSecondaryWorkerConfig()
Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12;
getSecondaryWorkerConfig
in interface ClusterConfigOrBuilder
public ClusterConfig.Builder setSecondaryWorkerConfig(InstanceGroupConfig value)
Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12;
public ClusterConfig.Builder setSecondaryWorkerConfig(InstanceGroupConfig.Builder builderForValue)
Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12;
public ClusterConfig.Builder mergeSecondaryWorkerConfig(InstanceGroupConfig value)
Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12;
public ClusterConfig.Builder clearSecondaryWorkerConfig()
Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12;
public InstanceGroupConfig.Builder getSecondaryWorkerConfigBuilder()
Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12;
public InstanceGroupConfigOrBuilder getSecondaryWorkerConfigOrBuilder()
Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
.google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12;
getSecondaryWorkerConfigOrBuilder
in interface ClusterConfigOrBuilder
public boolean hasSoftwareConfig()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;
hasSoftwareConfig
in interface ClusterConfigOrBuilder
public SoftwareConfig getSoftwareConfig()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;
getSoftwareConfig
in interface ClusterConfigOrBuilder
public ClusterConfig.Builder setSoftwareConfig(SoftwareConfig value)
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;
public ClusterConfig.Builder setSoftwareConfig(SoftwareConfig.Builder builderForValue)
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;
public ClusterConfig.Builder mergeSoftwareConfig(SoftwareConfig value)
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;
public ClusterConfig.Builder clearSoftwareConfig()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;
public SoftwareConfig.Builder getSoftwareConfigBuilder()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;
public SoftwareConfigOrBuilder getSoftwareConfigOrBuilder()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;
getSoftwareConfigOrBuilder
in interface ClusterConfigOrBuilder
public java.util.List<NodeInitializationAction> getInitializationActionsList()
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
getInitializationActionsList
in interface ClusterConfigOrBuilder
public int getInitializationActionsCount()
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
getInitializationActionsCount
in interface ClusterConfigOrBuilder
public NodeInitializationAction getInitializationActions(int index)
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
getInitializationActions
in interface ClusterConfigOrBuilder
public ClusterConfig.Builder setInitializationActions(int index, NodeInitializationAction value)
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public ClusterConfig.Builder setInitializationActions(int index, NodeInitializationAction.Builder builderForValue)
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public ClusterConfig.Builder addInitializationActions(NodeInitializationAction value)
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public ClusterConfig.Builder addInitializationActions(int index, NodeInitializationAction value)
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public ClusterConfig.Builder addInitializationActions(NodeInitializationAction.Builder builderForValue)
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public ClusterConfig.Builder addInitializationActions(int index, NodeInitializationAction.Builder builderForValue)
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public ClusterConfig.Builder addAllInitializationActions(java.lang.Iterable<? extends NodeInitializationAction> values)
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public ClusterConfig.Builder clearInitializationActions()
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public ClusterConfig.Builder removeInitializationActions(int index)
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public NodeInitializationAction.Builder getInitializationActionsBuilder(int index)
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public NodeInitializationActionOrBuilder getInitializationActionsOrBuilder(int index)
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
getInitializationActionsOrBuilder
in interface ClusterConfigOrBuilder
public java.util.List<? extends NodeInitializationActionOrBuilder> getInitializationActionsOrBuilderList()
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
getInitializationActionsOrBuilderList
in interface ClusterConfigOrBuilder
public NodeInitializationAction.Builder addInitializationActionsBuilder()
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public NodeInitializationAction.Builder addInitializationActionsBuilder(int index)
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public java.util.List<NodeInitializationAction.Builder> getInitializationActionsBuilderList()
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
repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11;
public final ClusterConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ClusterConfig.Builder>
public final ClusterConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ClusterConfig.Builder>