public static interface ConfigUtils.ConfigContext
| 限定符和类型 | 方法和说明 |
|---|---|
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–2022 The Apache Software Foundation. All rights reserved.