Skip to content

Commit b8bef9b

Browse files
committed
Remove unneeded cluster creation
1 parent 286b6b2 commit b8bef9b

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

azure-pipelines/provision-databricks.sh

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,3 @@ databricks secrets write --scope bikeshare --key storagekey --string-value $stor
1313
databricks fs cp --overwrite java-library/target/*.jar dbfs:/model-factory.jar
1414

1515

16-
if databricks clusters list --output JSON| jq -e '.clusters[] | select (.cluster_name == "small")' ; then
17-
exit
18-
fi
19-
20-
21-
cluster=$(databricks clusters create --json '{
22-
"cluster_name": "small",
23-
"spark_version": "5.2.x-scala2.11",
24-
"node_type_id": "Standard_DS3_v2",
25-
"autoscale" : {
26-
"min_workers": 1,
27-
"max_workers": 3
28-
},
29-
"spark_env_vars": {
30-
"PYSPARK_PYTHON": "/databricks/python3/bin/python3"
31-
},
32-
"autotermination_minutes": 120
33-
}')
34-
35-
36-
cluster_id=$(echo $cluster | jq -r .cluster_id)
37-
38-
databricks libraries install --cluster-id $cluster_id --jar dbfs:/model-factory.jar
39-
40-

0 commit comments

Comments
 (0)