Java Code Examples for org.apache.hadoop.fs.adl.AdlFileSystem

The following examples show how to use org.apache.hadoop.fs.adl.AdlFileSystem. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
public void initializeConfiguration(Configuration config)
    if (wasbAccessKey.isPresent() && wasbStorageAccount.isPresent()) {
        config.set(format("", wasbStorageAccount.get()), wasbAccessKey.get());

    if (abfsAccessKey.isPresent() && abfsStorageAccount.isPresent()) {
        config.set(format("", abfsStorageAccount.get()), abfsAccessKey.get());
        config.set("fs.abfs.impl", AzureBlobFileSystem.class.getName());

    if (adlClientId.isPresent() && adlCredential.isPresent() && adlRefreshUrl.isPresent()) {
        config.set("fs.adl.oauth2.access.token.provider.type", "ClientCredential");
        config.set("", adlClientId.get());
        config.set("fs.adl.oauth2.credential", adlCredential.get());
        config.set("fs.adl.oauth2.refresh.url", adlRefreshUrl.get());
        config.set("fs.adl.impl", AdlFileSystem.class.getName());
    // do not rely on information returned from local system about users and groups
    config.set("", "true");