cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to create a new cluster in Databricks using databricks-cli?

Kaniz
Community Manager
Community Manager
 
1 REPLY 1

Priyanka_Biswas
Valued Contributor
Valued Contributor

Here is the command to create cluster using databricks-cli

databricks clusters create --json-file create-cluster.json

create-cluster.json

{

"cluster_name": "my-cluster",

"spark_version": "7.3.x-scala2.12",

"node_type_id": "i3.xlarge",

"spark_conf": {

"spark.speculation": true

},

"aws_attributes": {

"availability": "SPOT",

"zone_id": "us-west-2a"

},

"num_workers": 25

}

Console output:

{

"cluster_id": "1234-567890-batch123"

}

Ref : https://docs.databricks.com/dev-tools/cli/clusters-cli.html

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.