databricks-hello-world

Featured

Create a minimal working Databricks example with cluster and notebook. Use when starting a new Databricks project, testing your setup, or learning basic Databricks patterns. Trigger with phrases like "databricks hello world", "databricks example", "databricks quick start", "first databricks notebook", "create cluster".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Databricks Hello World ## Overview Create your first Databricks cluster and notebook via the REST API and Python SDK. Covers single-node dev clusters, SQL warehouses, notebook upload, one-time job runs, and Delta Lake smoke tests. ## Prerequisites - Completed `databricks-install-auth` setup - Workspace access with cluster creation permissions - Valid API credentials in env vars or `~/.databrickscfg` ## Instructions ### Step 1: Create a Single-Node Dev Cluster ```bash # POST /api/2.0/clusters/create databricks clusters create --json '{ "cluster_name": "hello-world-dev", "spark_version": "14.3.x-scala2.12", "node_type_id": "i3.xlarge", "autotermination_minutes": 30, "num_workers": 0, "spark_conf": { "spark.databricks.cluster.profile": "singleNode", "spark.master": "local[*]" }, "custom_tags": { "ResourceClass": "SingleNode" } }' # Returns: {"cluster_id": "0123-456789-abcde123"} ``` Or via Python SDK: ```python from databricks.sdk import WorkspaceClient from databricks.sdk.service.compute import AutoScale w = WorkspaceClient() # create_and_wait blocks until cluster reaches RUNNING state cluster = w.clusters.create_and_wait( cluster_name="hello-world-dev", spark_version="14.3.x-scala2.12", node_type_id="i3.xlarge", num_workers=0, autotermination_minutes=30, spark_conf={ "spark.databricks.cluster.profile": "singleNode", "spark.master": "local[*]", }, ) print(f"Cluster ready: {cluster.cluster_id} ({c...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category