Skip to content

[Python] How to use fs.FileSystem.from_uri with Azurite #44682

Open
@fabricebaranski

Description

@fabricebaranski

Describe the usage question you have. Please include as many useful details as possible.

I want to use fs.FileSystem.from_uri with azurite.
Here a short sample of code:

import pyarrow.fs as fs
local_new, path_new = fs.FileSystem.from_uri("abfs://myaccount.blob.core.windows.net/mycontainer")
local_new.create_dir("test")

The error I received is:
az: error: unrecognized arguments: --scope https://storage.azure.com/.default
How can I set account_key to be able to use FileSystem.from_uri?

Component(s)

Python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions