Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage - Blobs NIO ReadMe and Samples issues #27302

Closed
v-hongli1 opened this issue Feb 25, 2022 · 1 comment · Fixed by #27253
Closed

Storage - Blobs NIO ReadMe and Samples issues #27302

v-hongli1 opened this issue Feb 25, 2022 · 1 comment · Fixed by #27253
Labels
Client This issue points to a problem in the data-plane of the library. Data Lake Storage Gen1 needs-team-triage Workflow: This issue needs the team to triage. test-manual-pass

Comments

@v-hongli1
Copy link
Member

v-hongli1 commented Feb 25, 2022

  1. Section link
    image

Reason:

  1. java.lang.IllegalArgumentException: URI does not contain an "endpoint=" parameter. FileSystems require a URI of the format "azb://?endpoint="
  2. java.lang.IllegalArgumentException: There was an error parsing the configurations map. Please ensure all fields are set to a legal value of the correct type.

Suggestion:
Change to

    private static final String CONTAINER_STORES = "dir,file"; // A comma separated list of container names
    private static final StorageSharedKeyCredential SHARE_KEY_CREDENTIAL
            = new StorageSharedKeyCredential("<account_name>", "<account_key>");
    private static final Map<String, Object> CONFIG = new HashMap<String, Object>(){{
        put(AzureFileSystem.AZURE_STORAGE_SHARED_KEY_CREDENTIAL, SHARE_KEY_CREDENTIAL);
        put(AzureFileSystem.AZURE_STORAGE_FILE_STORES, CONTAINER_STORES);
    }};
    private FileSystem myFs = FileSystems.newFileSystem(new URI("azb://?endpoint=<account_endpoint>"), CONFIG);

@joshfree, @tg-msft, @kyle-patterson and @rickle-msft for notification.

@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Feb 25, 2022
@v-xuto v-xuto added Client This issue points to a problem in the data-plane of the library. needs-team-triage Workflow: This issue needs the team to triage. test-manual-pass labels Feb 25, 2022
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Feb 25, 2022
@rickle-msft
Copy link
Contributor

@hongli750210 Thank you for reporting this. I'll add this now.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Data Lake Storage Gen1 needs-team-triage Workflow: This issue needs the team to triage. test-manual-pass
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants