generated from databricks-industry-solutions/industry-solutions-blueprints
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from databricks-industry-solutions/bugfix/runme
New RUNME! 100% Serverless + OHIF in lakehouse APP deploy
- Loading branch information
Showing
6 changed files
with
56 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
# Databricks notebook source | ||
# MAGIC %md This notebook sets up the companion cluster(s) to run the solution accelerator. It also creates the Workflow to illustrate the order of execution. Happy exploring! | ||
# MAGIC 🎉 | ||
# MAGIC | ||
# MAGIC | ||
# MAGIC **Steps** | ||
# MAGIC 1. Simply attach this notebook to a cluster and hit `Run all` for this notebook. A multi-step job and the clusters used in the job will be created for you and hyperlinks are printed on the last block of the notebook. | ||
# MAGIC | ||
# MAGIC | ||
# MAGIC 2. Run the accelerator notebooks: Feel free to explore the multi-step job page and **run the Workflow**, or **run the notebooks interactively** with the cluster to see how this solution accelerator executes. | ||
# MAGIC | ||
# MAGIC | ||
# MAGIC 2a. **Run the Workflow**: Navigate to the Workflow link and hit the `Run Now` 💥. | ||
# MAGIC | ||
# MAGIC 2b. **Run the notebooks interactively**: Attach the notebook with the cluster(s) created and execute as described in the `job_json['tasks']` below. | ||
# MAGIC | ||
# MAGIC | ||
# MAGIC **Prerequisites** | ||
# MAGIC 1. You need to have cluster creation permissions in this workspace. | ||
# MAGIC | ||
# MAGIC | ||
# MAGIC 2. In case the environment has cluster-policies that interfere with automated deployment, you may need to manually create the cluster in accordance with the workspace cluster policy. The `job_json` definition below still provides valuable information about the configuration these series of notebooks should run with. | ||
# MAGIC | ||
# MAGIC | ||
# MAGIC **Notes** | ||
# MAGIC 1. The pipelines, workflows and clusters created in this script are not user-specific. Keep in mind that rerunning this script again after modification resets them for other users too. | ||
# MAGIC | ||
# MAGIC | ||
# MAGIC 2. If the job execution fails, please confirm that you have set up other environment dependencies as specified in the accelerator notebooks. Accelerators may require the user to set up additional cloud infra or secrets to manage credentials. | ||
|
||
# COMMAND ---------- | ||
|
||
# DBTITLE 0,Install util packages | ||
# MAGIC %pip install git+https://github.com/databricks-academy/[email protected] git+https://github.com/databricks-industry-solutions/notebook-solution-companion@safe-print-html --quiet | ||
# MAGIC %pip install git+https://github.com/databricks-academy/[email protected] git+https://github.com/databricks-industry-solutions/notebook-solution-companion@serverless --quiet | ||
|
||
# COMMAND ---------- | ||
|
||
|
@@ -42,14 +42,12 @@ | |
}, | ||
"tasks": [ | ||
{ | ||
"job_cluster_key": "pixels_cluster", | ||
"notebook_task": { | ||
"notebook_path": f"00-README" | ||
}, | ||
"task_key": "00-README" | ||
}, | ||
{ | ||
"job_cluster_key": "pixels_cluster", | ||
"notebook_task": { | ||
"notebook_path": f"01-dcm-demo" | ||
}, | ||
|
@@ -61,36 +59,27 @@ | |
] | ||
}, | ||
{ | ||
"job_cluster_key": "pixels_cluster", | ||
"notebook_task": { | ||
"notebook_path": f"02-dcm-browser" | ||
"notebook_path": f"07-OHIF-Lakehouse-App" | ||
}, | ||
"task_key": "02-dcm-browser", | ||
"task_key": "07-OHIF-Lakehouse-App", | ||
"depends_on": [ | ||
{ | ||
"task_key": "01-dcm-demo" | ||
} | ||
] | ||
} | ||
], | ||
"job_clusters": [ | ||
"parameters": [ | ||
{ | ||
"job_cluster_key": "pixels_cluster", | ||
"new_cluster": { | ||
"spark_version": "14.3.x-scala2.12", | ||
"spark_conf": { | ||
"spark.databricks.delta.formatCheck.enabled": "false" | ||
}, | ||
"num_workers": 8, | ||
"node_type_id": {"AWS": "c5d.2xlarge", "MSA": "Standard_DS4_v2", "GCP": "n1-highmem-4"}, | ||
"custom_tags": { | ||
"usage": "solacc_testing", | ||
"group": "HLS", | ||
"accelerator": "pixels" | ||
}, | ||
} | ||
"name": "table", | ||
"default": "main.pixel_solacc.object_catalog" | ||
}, | ||
{ | ||
"name": "volume", | ||
"default": "main.pixel_solacc.pixels_volume" | ||
} | ||
] | ||
] | ||
} | ||
|
||
# COMMAND ---------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters