-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathoutput.txt
More file actions
76 lines (62 loc) · 1.96 KB
/
Copy pathoutput.txt
File metadata and controls
76 lines (62 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
=== Deploy with started=false: warehouse created and then stopped
>>> errcode [CLI] bundle deploy
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files...
Deploying resources...
Updating deployment state...
Deployment complete!
>>> print_requests.py //sql/warehouses
{
"method": "POST",
"path": "/api/2.0/sql/warehouses",
"body": {
"auto_stop_mins": 120,
"cluster_size": "Medium",
"enable_photon": true,
"max_num_clusters": 1,
"name": "[UNIQUE_NAME]",
"spot_instance_policy": "COST_OPTIMIZED"
}
}
{
"method": "POST",
"path": "/api/2.0/sql/warehouses/[UUID]/stop",
"body": {}
}
>>> errcode [CLI] warehouses get [UUID]
"STOPPED"
=== Toggle started=false -> started=true: only Start should be called, no Edit
>>> update_file.py databricks.yml started: false started: true
>>> errcode [CLI] bundle deploy
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files...
Deploying resources...
Updating deployment state...
Deployment complete!
>>> print_requests.py //sql/warehouses
{
"method": "POST",
"path": "/api/2.0/sql/warehouses/[UUID]/start",
"body": {}
}
>>> errcode [CLI] warehouses get [UUID]
"RUNNING"
=== Toggle started=true -> started=false: only Stop should be called, no Edit
>>> update_file.py databricks.yml started: true started: false
>>> errcode [CLI] bundle deploy
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files...
Deploying resources...
Updating deployment state...
Deployment complete!
>>> print_requests.py //sql/warehouses
{
"method": "POST",
"path": "/api/2.0/sql/warehouses/[UUID]/stop",
"body": {}
}
>>> errcode [CLI] warehouses get [UUID]
"STOPPED"
>>> [CLI] bundle destroy --auto-approve
The following resources will be deleted:
delete resources.sql_warehouses.mywarehouse
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]
Deleting files...
Destroy complete!