public static interface ConfigUtils.ConfigContext
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getenv(String name)
Returns a named environment variable.
|
org.apache.hadoop.conf.Configuration |
loadHadoopConfigFromDir(String configDir)
Loads the Hadoop configuration from a directory.
|
com.google.auth.oauth2.GoogleCredentials |
loadStorageCredentialsFromFile(String credentialsPath)
Loads the Google credentials from a file.
|
Optional<String> getenv(String name)
name
- Name of variableorg.apache.hadoop.conf.Configuration loadHadoopConfigFromDir(String configDir)
configDir
- The Hadoop config directory.com.google.auth.oauth2.GoogleCredentials loadStorageCredentialsFromFile(String credentialsPath)
credentialsPath
- The path of the credentials file.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.