【发布时间】:2020-07-19 15:28:20
【问题描述】:
我有一个 python 轮子上传到安装在 databricks 服务中的 azure 存储帐户。我正在尝试使用数据块documentation 中描述的集群初始化脚本来安装轮子。
我的存储空间肯定已经挂载,而且我的文件路径对我来说看起来是正确的。在笔记本中运行命令display(dbutils.fs.ls("/mnt/package-source")) 会产生结果:
path: dbfs:/mnt/package-source/parser-3.0-py3-none-any.whl
name: parser-3.0-py3-none-any.whl
我尝试使用以下命令从集群初始化文件安装轮子:
/databricks/python/bin/pip install "dbfs:/mnt/package-source/parser-3.0-py3-none-any.whl"
但集群无法启动。它的日志给我一个错误,说它找不到文件:
WARNING: Requirement 'dbfs:/mnt/package-source/parser-3.0-py3-none-any.whl' looks like a filename, but the file does not exist
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/dbfs:/mnt/package-source/parser-3.0-py3-none-any.whl'
我也试过这样:
/databricks/python/bin/pip install /mnt/package-source/parser-3.0-py3-none-any.whl
但我收到类似的错误:
WARNING: Requirement '/mnt/package-source/parser-3.0-py3-none-any.whl' looks like a filename, but the file does not exist
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/mnt/package-source/parser-3.0-py3-none-any.whl'
我什至尝试过使用相对路径,例如../../mnt/package-source/...,但无济于事。谁能告诉我我做错了什么?
相关问题:Azure Databricks cluster init script - install python wheel
【问题讨论】:
标签: azure databricks azure-databricks