public static final class ClusterConfig.Builder extends GeneratedMessageV3.Builder<ClusterConfig.Builder> implements ClusterConfigOrBuilder
The cluster config.Protobuf type
google.cloud.dataproc.v1.ClusterConfiggetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<ClusterConfig.Builder>public ClusterConfig.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<ClusterConfig.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<ClusterConfig.Builder>public ClusterConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic ClusterConfig build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic ClusterConfig buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic ClusterConfig.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<ClusterConfig.Builder>public ClusterConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<ClusterConfig.Builder>public ClusterConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<ClusterConfig.Builder>public ClusterConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<ClusterConfig.Builder>public ClusterConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<ClusterConfig.Builder>public ClusterConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<ClusterConfig.Builder>public ClusterConfig.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<ClusterConfig.Builder>public ClusterConfig.Builder mergeFrom(ClusterConfig other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<ClusterConfig.Builder>public ClusterConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<ClusterConfig.Builder>java.io.IOExceptionpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic boolean hasSoftwareConfig()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;hasSoftwareConfig in interface ClusterConfigOrBuilderpublic SoftwareConfig getSoftwareConfig()
Optional. The config settings for software inside the cluster.
.google.cloud.dataproc.v1.SoftwareConfig software_config = 13;getSoftwareConfig in interface ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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 ClusterConfigOrBuilderpublic 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.BuildersetUnknownFields in class GeneratedMessageV3.Builder<ClusterConfig.Builder>public final ClusterConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<ClusterConfig.Builder>