Error binding storage credential & external location to workspace

Aperta
#3,945 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
64/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Inizia riproducendo il problema con il comando databricks workspace-bindings update-bindings storage-credential e il payload JSON mostrato, usando Databricks CLI v0.276.0. Confronta i percorsi di binding della storage credential e della external location, nonché i relativi tipi di binding accettati; il lavoro è completato quando entrambi possono essere aggiunti al workspace senza l'errore segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
427
Fork
267
Merge medio
2g 1h
PR unite (30g)
233

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di databricks/cli

Tutte le issue di databricks/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.