public final class HdfsFileSystemConfigBuilder extends FileSystemConfigBuilder
| Modifier and Type | Method and Description |
|---|---|
protected Class<? extends FileSystem> |
getConfigClass()
Get the target of this configuration.
|
String |
getConfigName(FileSystemOptions opts)
Get name of alternate configuration file.
|
static HdfsFileSystemConfigBuilder |
getInstance() |
void |
setConfigName(FileSystemOptions opts,
String name)
Sets the name of configuration file to be loaded after the defaults.
|
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURIpublic static HdfsFileSystemConfigBuilder getInstance()
protected Class<? extends FileSystem> getConfigClass()
FileSystemConfigBuildergetConfigClass in class FileSystemConfigBuilderpublic String getConfigName(FileSystemOptions opts)
opts - The FileSystemOptions.setConfigName(FileSystemOptions, String)public void setConfigName(FileSystemOptions opts, String name)
Specifies the name of a config file to override any specific HDFS settings.
The property will be passed on to org.apache.hadoop.conf.Configuration#addResource(String)
after the URL was set as the default name with: Configuration#set(FileSystem.FS_DEFAULT_NAME_KEY, url).
One use for this is to set a different value for the dfs.client.use.datanode.hostname
property in order to access HDFS files stored in an AWS installation (from outside their
firewall). There are other possible uses too.
opts - The FileSystemOptions to modify.name - resource name of additional configuration file or null.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.