Databricks 资产包部署失败

问题描述 投票:0回答:1

当我尝试验证我的 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}
github-actions databricks-asset-bundle
1个回答
0
投票

可能是网络故障。

或者可能你没有设置环境变量DATABRICKS_HOST。

尝试

echo $DATABRICKS_HOST

如果它是空的,请尝试:

export DATABRICKS_HOST="https://<databricks-host>"

如果有效,您可以通过以下方式使其永久化:

echo 'export DATABRICKS_HOST="https://<databricks-host>"' >> ~/.bashrc
© www.soinside.com 2019 - 2024. All rights reserved.