当我尝试验证我的 Databricks 资源包时,收到以下错误消息:
Run databricks bundle validate
Error: unable to parse response.
我在其他 YAML 文件中成功构建了轮子,但是当进行验证时,我收到上述错误,我的
databricks.yml
如下所示。
bundle:
name: evals-bundle
# Artifacts section
artifacts:
# notebooks:
# path: notebooks/
wheels:
path: dist/
# Workspace configuration
workspace:
host: ${DATABRICKS_HOST}
# Environment-specific configurations
environments:
Production:
workspace:
host: ${DATABRICKS_HOST}
可能是网络故障。
或者可能你没有设置环境变量DATABRICKS_HOST。
尝试
echo $DATABRICKS_HOST
如果它是空的,请尝试:
export DATABRICKS_HOST="https://<databricks-host>"
如果有效,您可以通过以下方式使其永久化:
echo 'export DATABRICKS_HOST="https://<databricks-host>"' >> ~/.bashrc