yc dataproc cluster create
Статья создана
Обновлена 24 июля 2025 г.
Create a cluster.
Command Usage
Syntax:
yc dataproc cluster create <CLUSTER-NAME> [Flags...] [Global Flags...]
Flags
| Flag | Description |
|---|---|
--name |
stringName of the cluster. |
--description |
stringDescription of the cluster. |
--zone |
stringID of the availability zone where the cluster resides. |
--service-account-id |
stringService account id. |
--service-account-name |
stringService account name. |
--autoscaling-service-account-id |
stringAutoscaling service account id. |
--autoscaling-service-account-name |
stringAutoscaling service account name. |
--version |
stringVersion of an image for cluster provisioning. |
--services |
List of used services in a cluster. If no service is specified, the default set will be used. A list can be specified by listing services separated by commas as well as passing this flag multiple times. Available services are: 'hdfs', 'yarn', 'mapreduce', 'hive', 'tez', 'zookeeper', 'hbase', 'sqoop', 'flume', 'spark', 'zeppelin'. |
--property |
value[,value]Properties passed to all hosts *-site.xml configurations in <service>:<property>=<value> format. For example setting property 'dfs.replication' to 3 in /etc/hadoop/conf/hdfs-site.xml requires specifying --property "hdfs:dfs.replication=3" This flag can be passed multiple times. |
--ssh-public-keys-file |
stringSpecify a list of SSH public keys that will be set as authorized keys to root user on cluster hosts. |
--subcluster |
PROPERTY=VALUE[,PROPERTY=VALUE...]Specifies options for subclusters. Can be passed multiple times. Possible property names:
|
--initialization-action |
PROPERTY=VALUE[,PROPERTY=VALUE...]Specifies initialization action. Can be passed multiple times. Possible property names:
|
--oslogin |
Whether to enable OSLogin feature. |
--bucket |
stringObject Storage bucket to be used for Data Proc jobs that are run in the cluster. |
--labels |
key=value[,key=value...]A list of cluster labels as key-value pairs. |
--ui-proxy |
Whether to enable UI Proxy feature. |
--security-group-ids |
value[,value]A list of security groups for the Data Proc cluster. |
--host-group-ids |
value[,value]A list of host groups to place VMs of cluster on. |
--deletion-protection |
Deletion Protection inhibits deletion of the cluster. |
--log-group-id |
stringId of a log group to write cluster logs to. |
--environment |
stringCluster environment. Values: production, prestable. |
--async |
Display information about the operation in progress, without waiting for the operation to complete. |
Global Flags
| Flag | Description |
|---|---|
--profile |
stringSet the custom configuration file. |
--debug |
Debug logging. |
--debug-grpc |
Debug gRPC logging. Very verbose, used for debugging connection problems. |
--no-user-output |
Disable printing user intended output to stderr. |
--retry |
intEnable gRPC retries. By default, retries are enabled with maximum 5 attempts. Pass 0 to disable retries. Pass any negative value for infinite retries. Even infinite retries are capped with 2 minutes timeout. |
--cloud-id |
stringSet the ID of the cloud to use. |
--folder-id |
stringSet the ID of the folder to use. |
--folder-name |
stringSet the name of the folder to use (will be resolved to id). |
--endpoint |
stringSet the Cloud API endpoint (host:port). |
--token |
stringSet the OAuth token to use. |
--impersonate-service-account-id |
stringSet the ID of the service account to impersonate. |
--no-browser |
Disable opening browser for authentication. |
--format |
stringSet the output format: text (default), yaml, json, json-rest. |
--jq |
stringQuery to select values from the response using jq syntax |
-h,--help |
Display help for the command. |