To run these exercises, follow each instructions below in this readme.
- Storage Settings
- Basics of PySpark, Spark Dataframe, and Spark Machine Learning
- Data Transformation and Spark ML Pipeline
- Hyper-parameter Tuning
- MLeap (requires ML runtime)
- Spark PyTorch Distributor (requires ML runtime)
- Structured Streaming (Basic)
- Structured Streaming with Azure Event Hubs or Kafka
- Delta Lake
- MLflow (requires ML runtime)
- Orchestration with Azure Data Services
- Lakeflow Spark Declarative Pipelines
- Databricks SQL
These exercises focus only on essential learning of data, integration, and primitive ML features - not including generative AI features, such as, building AI agents, AI functions, fine-tuning foundation models, etc. (First commit: Oct 2018)
- Create Azure Databricks resource in Microsoft Azure.
(Select premium plan, not standard. Select hybrid type, not serverless.) - After the resource is created, launch Databricks workspace UI by clicking "Launch Workspace".
- Create a compute (cluster) in Databricks UI. (Select "Compute" menu and proceed to create.)
In the wizard, enable "machine learning" to create ML runtime. - Clone this repository on your desktop. (Or download HandsOn.dbc.)
git clone https://github.com/tsmatsuz/azure-databricks-exercise - Import
HandsOn.dbcinto your Databricks workspace as follows.- Select "Workspace" in Databricks UI.
- Go to your user folder, and then select "Import".
- Pick up
HandsOn.dbcand submit import.
- Open the imported notebooks and attach above compute (cluster) in every notebooks. (Select compute (cluster) on the top of notebook.)
- Run "Exercise 01 : Storage Settings (Prepare)", before running other notebooks.
Make sure you have an account with permissions to manage catalogs in Azure Databricks. (e.g., Global Administrators in tenant will have this permission.)
Note : This requires classic compute culster, and you cannot use Azure trial (free) subscription, because of the limited quota. When you're in Azure free subscription, please promote to pay-as-you-go. (The credit in free subscription will be reserved, even when you transit to pay-as-you-go.)
Throughout exercises in this repository, we mostly use All-purpose compute as cluster for experimentation purpose, but please create a Job and use Job compute as cluster for production. (All-purpose compute is more expensive than Job compute.)
Tsuyoshi Matsuzaki @ Microsoft Asia