Error binding storage credential & external location to workspace

オープン
#3,945 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
go
領域
cli

調査の方向性

Databricks CLI v0.276.0を使用して、databricks workspace-bindings update-bindings storage-credentialコマンドと示されているJSONペイロードで問題を再現することから始めます。storage credentialとexternal locationのbindingパス、およびそれらで受け入れられるbindingタイプを比較します。報告されたエラーなしに両方をworkspaceに追加できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

CLI
Describe the issue

Error binding both storage credential or external location to a workspace via CLI when running code in Step 1 below. See error below. Databricks documentation states Read-only binding (BINDING_TYPE_READ_ONLY) is not available for storage credentials. Therefore there is no reason to set binding_type for the storage credentials binding. However I receive the error below, which seems as if I have set an incorrect binding type, even though I have not set one at all in the json. Note that this command does work to remove a binding that you have added manually within the Databricks UI.
Additionally, if I do provide a binding_type I receive a different error.

Steps to reproduce the behavior
  1. Run databricks workspace-bindings update-bindings storage-credential <my-storage-credential> \ --json '{ "add": [{"workspace_id": <workspace-id>}] }' --profile <profile-name>
  2. See error
Expected Behavior

Successfully bind the storage credential or external location to <workspace-id>

Actual Behavior

Received error Error: Supported binding types for STORAGE_CREDENTIAL are BINDING_TYPE_READ_WRITE

OS and CLI version

Windows, Databricks CLI v0.276.0

Is this a regression?

No, has not worked for previous versions that I have seen.

主要言語
Go
スター
427
フォーク
267
平均マージ
2日 1時間
マージ済み PR(30日)
233

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

databricks/cli のほかの issue

databricks/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。