Create a warehouse.
create_warehouse_and_wait.Rd
This is a long-running operation, which blocks until Warehouses on Databricks reach
RUNNING state with the timeout of 20 minutes, that you can change via timeout
parameter.
By default, the state of Databricks Warehouses is reported to console. You can change this behavior
by changing the callback
parameter.
Usage
create_warehouse_and_wait(
client,
auto_stop_mins = NULL,
channel = NULL,
cluster_size = NULL,
creator_name = NULL,
enable_photon = NULL,
enable_serverless_compute = NULL,
instance_profile_arn = NULL,
max_num_clusters = NULL,
min_num_clusters = NULL,
name = NULL,
spot_instance_policy = NULL,
tags = NULL,
warehouse_type = NULL,
timeout = 20,
callback = cli_reporter
)
Arguments
- client
Required. Instance of DatabricksClient()
- auto_stop_mins
The amount of time in minutes that a SQL warehouse must be idle (i.e., no RUNNING queries) before it is automatically stopped.
- channel
Channel Details.
- cluster_size
Size of the clusters allocated for this warehouse.
- creator_name
warehouse creator name.
- enable_photon
Configures whether the warehouse should use Photon optimized clusters.
- enable_serverless_compute
Configures whether the warehouse should use serverless compute.
- instance_profile_arn
Deprecated.
- max_num_clusters
Maximum number of clusters that the autoscaler will create to handle concurrent queries.
- min_num_clusters
Minimum number of available clusters that will be maintained for this SQL warehouse.
- name
Logical name for the cluster.
- spot_instance_policy
Configurations whether the warehouse should use spot instances.
- tags
A set of key-value pairs that will be tagged on all resources (e.g., AWS instances and EBS volumes) associated with this SQL warehouse.
- warehouse_type
Warehouse type:
PRO
orCLASSIC
.- timeout
Time to wait for the operation to complete in minutes.
- callback
Function to report the status of the operation. By default, it reports to console.