QuestionQ291

VerifiedDebugging and Deploying

A data engineer must reliably install the PyYAML Python package for YAML file processing in their Databricks environment. However, the Databricks workspace is air-gapped and has no direct internet access to download packages from PyPI. The engineer has already downloaded the required PyYAML wheel (.whl) file to their laptop. The data engineer wants to install PyYAML from that local wheel file so that it is automatically available whenever a new cluster is provisioned in their Databricks workspace.

Which approach should the data engineer use?

Explanation

A wheel stored in a Unity Catalog volume can be made available to cluster startup code, and a cluster-scoped init script can invoke pip install on that wheel path. Init scripts run during cluster initialization, providing repeatable installation without PyPI access. On Unity Catalog standard-access compute, configured init scripts require allowlisting, and volume access is governed by Unity Catalog permissions.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!