File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -13,28 +13,3 @@ databricks secrets write --scope bikeshare --key storagekey --string-value $stor
1313databricks 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-
You can’t perform that action at this time.
0 commit comments