(create-cluster! options)
Create a new cluster within a Databricks Account Input Must have at least [token timeout host context]
:token
your databricks token to use the API:timeout
the time limit in milliseconds to wait for the response.:host
your account host, e.g. http://abc.cloud.databricks.com
:context
is your data to the request, in this case use a cluster information, as below: {: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}
Output
{:result {:cluster_id "123"}}
Create a new cluster within a Databricks Account **Input** Must have at least [token timeout host context] - `:token` your databricks token to use the API - `:timeout` the time limit in milliseconds to wait for the response. - `:host` your account host, e.g. `http://abc.cloud.databricks.com` - `:context` is your data to the request, in this case use a cluster information, as below: ```clojure {: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} ``` **Output** ```clojure {:result {:cluster_id "123"}} ```
(edit-cluster! options)
Edit a specific cluster within a Databricks Account Input Must have at least [token timeout host context]
:token
your databricks token to use the API:timeout
the time limit in milliseconds to wait for the response.:host
your account host, e.g. http://abc.cloud.databricks.com
:context
is your data to the request, in this case use a cluster information, as below: {:cluster_id "1x2e34r5t"
:spark_version "7.3.x-scala2.12"
:node_type_id "i3.xlarge"
:num_workers 10}
Output
{:result {:cluster_id "123"}}
Edit a specific cluster within a Databricks Account **Input** Must have at least [token timeout host context] - `:token` your databricks token to use the API - `:timeout` the time limit in milliseconds to wait for the response. - `:host` your account host, e.g. `http://abc.cloud.databricks.com` - `:context` is your data to the request, in this case use a cluster information, as below: ```clojure {:cluster_id "1x2e34r5t" :spark_version "7.3.x-scala2.12" :node_type_id "i3.xlarge" :num_workers 10} ``` **Output** ```clojure {:result {:cluster_id "123"}} ```
(list-clusters options)
List all clusters from a databrick account. Input Must have at least [token timeout host context]
:token
your databricks token to use the API:timeout
the time limit in milliseconds to wait for the response.:host
your account host, e.g. http://abc.cloud.databricks.com
:context
is your data to the request, in this case use empty {}Output
{:result {:clusters [{:cluster_id "123"}]}}
List all clusters from a databrick account. **Input** Must have at least [token timeout host context] - `:token` your databricks token to use the API - `:timeout` the time limit in milliseconds to wait for the response. - `:host` your account host, e.g. `http://abc.cloud.databricks.com` - `:context` is your data to the request, in this case use empty {} **Output** ```clojure {:result {:clusters [{:cluster_id "123"}]}} ```
(start-cluster! options)
Start a specific cluster within a Databricks Account Input Must have at least [token timeout host context]
:token
your databricks token to use the API:timeout
the time limit in milliseconds to wait for the response.:host
your account host, e.g. http://abc.cloud.databricks.com
:context
is your data to the request, in this case use a cluster id information, as below: {:cluster_id "1x2e34r5t"}
Output
{:result {:cluster_id "123"}}
Start a specific cluster within a Databricks Account **Input** Must have at least [token timeout host context] - `:token` your databricks token to use the API - `:timeout` the time limit in milliseconds to wait for the response. - `:host` your account host, e.g. `http://abc.cloud.databricks.com` - `:context` is your data to the request, in this case use a cluster id information, as below: ```clojure {:cluster_id "1x2e34r5t"} ``` **Output** ```clojure {:result {:cluster_id "123"}} ```
(terminate-cluster! options)
Terminate a specific cluster within a Databricks Account Input Must have at least [token timeout host context]
:token
your databricks token to use the API:timeout
the time limit in milliseconds to wait for the response.:host
your account host, e.g. http://abc.cloud.databricks.com
:context
is your data to the request, in this case use a cluster id information, as below: {:cluster_id "1x2e34r5t"}
Output
{:result {:cluster_id "123"}}
Terminate a specific cluster within a Databricks Account **Input** Must have at least [token timeout host context] - `:token` your databricks token to use the API - `:timeout` the time limit in milliseconds to wait for the response. - `:host` your account host, e.g. `http://abc.cloud.databricks.com` - `:context` is your data to the request, in this case use a cluster id information, as below: ```clojure {:cluster_id "1x2e34r5t"} ``` **Output** ```clojure {:result {:cluster_id "123"}} ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close