duckdb / duckdb/unity_catalog

Duckdb unable to perform token request

Open
#36 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
110
Forks
44
Avg merge
2d 13h
Merged PRs (30d)
4

Description

I am trying to run this script

```sql
LOAD azure;
LOAD httpfs;
LOAD delta;
LOAD uc_catalog;
CREATE SECRET uc_secret(TYPE UC, ENDPOINT 'https:/.azuredatabricks.net', TOKEN 'databricks-pat');
ATTACH 'mica' AS mica ( TYPE UC_CATALOG, SECRET uc_secret);

SHOW ALL TABLES; -- gives empty result the first time, works on the second.
select * from mica.schema.table; -- this table is enabled for external read

```
I get the following error
>IO Error:
Hit DeltaKernel FFI error (from: While trying to read from delta table: 'abfss://container@storageaccount.dfs.core.windows.net/table/'): Hit error: 8 (ObjectStoreError) with message (Error interacting with object store: Generic MicrosoftAzure error: Error performing token request: Error after 10 retries in 13.700564084s, max_retries:10, retry_timeout:180s, source:error sending request for url (http://ip/metadata/identity/oauth2/token?api-version=2019-08-01&resource=https%3A%2F%2Fstorage.azure.com))

This works in the delta lake client where you specify the table path in unity and it fetches the temporary credentials for that table and fetches the result. This is also similar to #5 but raising this as I can't reopen it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.