Skip to content

Commit

Permalink
add sample library definition
Browse files Browse the repository at this point in the history
  • Loading branch information
timothywarner committed Jun 10, 2024
1 parent 6c256e1 commit 63785c0
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
100 changes: 100 additions & 0 deletions pyspark-dev-library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"cluster_policy_name": "TeachingClusterPolicyWithLibraries",
"cluster_policy_description": "Policy to enforce single user clusters, use of instance pool, service principal, and pre-installed libraries for teaching examples.",
"policy": {
"spark_version": {
"type": "fixed",
"value": "7.3.x-scala2.12"
},
"node_type_id": {
"type": "fixed",
"value": "default-instance-pool"
},
"num_workers": {
"type": "range",
"minValue": 1,
"maxValue": 1,
"defaultValue": 1
},
"cluster_log_conf": {
"type": "fixed",
"value": {
"dbfs": {
"destination": "dbfs:/cluster-logs"
}
}
},
"autotermination_minutes": {
"type": "fixed",
"value": 60
},
"spark_conf": {
"type": "fixed",
"value": {
"spark.databricks.service.client.id": "{{secrets/my-secrets/client-id}}",
"spark.databricks.service.tenant.id": "{{secrets/my-secrets/tenant-id}}",
"spark.databricks.service.secret": "{{secrets/my-secrets/secret}}"
}
},
"custom_tags": {
"type": "fixed",
"value": {
"Project": "TeachingExamples",
"Owner": "SingleUser"
}
},
"cluster_permissions": {
"type": "fixed",
"value": {
"user_access_control": {
"all_permissions": [
{
"user_name": "*",
"permission_level": "CAN_MANAGE"
}
]
}
}
},
"enable_elastic_disk": {
"type": "fixed",
"value": true
},
"libraries": {
"type": "fixed",
"value": [
{
"pypi": {
"package": "pandas"
}
},
{
"pypi": {
"package": "numpy"
}
},
{
"pypi": {
"package": "scikit-learn"
}
},
{
"pypi": {
"package": "matplotlib"
}
},
{
"pypi": {
"package": "seaborn"
}
},
{
"pypi": {
"package": "pyarrow"
}
},
{
"pypi": {
"package": "requests"
}

Binary file modified warner-databricks-slides.pptx
Binary file not shown.

0 comments on commit 63785c0

Please sign in to comment.