public static Configuration createConfiguration ( UnderFileSystemConfiguration conf ) { Configuration wasbConf = HdfsUnderFileSystem . createConfiguration ( conf ) ; for ( Map . Entry < String , String > entry : conf . toMap ( ) . entrySet ( ) ) { String key = entry . getKey ( ) ; String value = entry . getValue ( ) ; if ( PropertyKey . Template . UNDERFS_AZURE_ACCOUNT_KEY . matches ( key ) ) { wasbConf . set ( key , value ) ; } } wasbConf . set ( "fs.AbstractFileSystem.wasb.impl" , "org.apache.hadoop.fs.azure.Wasb" ) ; wasbConf . set ( "fs.wasb.impl" , "org.apache.hadoop.fs.azure.NativeAzureFileSystem" ) ; return wasbConf ; }
Prepares the configuration for this Wasb as an HDFS configuration .