org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem Java Examples
The following examples show how to use
org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem.
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
Source File: PrestoAzureConfigurationInitializer.java From presto with Apache License 2.0 | 6 votes |
@Override public void initializeConfiguration(Configuration config) { if (wasbAccessKey.isPresent() && wasbStorageAccount.isPresent()) { config.set(format("fs.azure.account.key.%s.blob.core.windows.net", wasbStorageAccount.get()), wasbAccessKey.get()); } if (abfsAccessKey.isPresent() && abfsStorageAccount.isPresent()) { config.set(format("fs.azure.account.key.%s.dfs.core.windows.net", 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("fs.adl.oauth2.client.id", 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("fs.azure.skipUserGroupMetadataDuringInitialization", "true"); }