public class ConfigurationFactoryBean extends Object implements BeanClassLoaderAware, InitializingBean, FactoryBean<YarnConfiguration>
YarnConfiguration instances.| Modifier and Type | Field and Description |
|---|---|
static String |
USERKEYTAB |
static String |
USERPRINCIPAL |
| Constructor and Description |
|---|
ConfigurationFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected YarnConfiguration |
createConfiguration(Configuration existing)
Creates a configuration instance potentially using the existing one (passed as an argument - which can be null).
|
YarnConfiguration |
getObject() |
Class<YarnConfiguration> |
getObjectType() |
boolean |
isSingleton() |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setConfiguration(YarnConfiguration configuration)
Sets the parent configuration.
|
void |
setFsUri(String fsUri)
Sets the File System ('fs.defaultFS') URI.
|
void |
setInitialize(boolean initialize)
Indicates whether the configuration object should be initialized (true) or not.
|
void |
setNamenodePrincipal(String namenodePrincipal)
Sets the used namenode principal.
|
void |
setProperties(Properties properties)
Sets the configuration properties.
|
void |
setRegisterUrlHandler(boolean register)
Indicates whether the configuration should register an URL handler (for allowing urls
to understand HDFS prefixes, such as hdfs) or not.
|
void |
setResources(Set<Resource> resources)
Sets the configuration resources.
|
void |
setRmAddress(String rmAddress)
Sets the Yarn ('yarn.resourcemanager.address') address.
|
void |
setRmManagerPrincipal(String rmManagerPrincipal)
Sets the used resource manager principal.
|
void |
setSchedulerAddress(String schedulerAddress)
Sets the Yarn ('yarn.resourcemanager.scheduler.address') address.
|
void |
setSecurityAuthMethod(org.springframework.data.hadoop.security.SecurityAuthMethod securityAuthMethod)
Sets the security auth method.
|
void |
setUserKeytab(String userKeytab)
Sets the user keytab.
|
void |
setUserPrincipal(String userPrincipal)
Sets the user principal.
|
public static final String USERKEYTAB
public static final String USERPRINCIPAL
public YarnConfiguration getObject()
getObject in interface FactoryBean<YarnConfiguration>public Class<YarnConfiguration> getObjectType()
getObjectType in interface FactoryBean<YarnConfiguration>public boolean isSingleton()
isSingleton in interface FactoryBean<YarnConfiguration>public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface BeanClassLoaderAwarepublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void setSecurityAuthMethod(org.springframework.data.hadoop.security.SecurityAuthMethod securityAuthMethod)
securityAuthMethod - the new security auth methodpublic void setUserPrincipal(String userPrincipal)
userPrincipal - the new user principalpublic void setUserKeytab(String userKeytab)
userKeytab - the new user keytabpublic void setNamenodePrincipal(String namenodePrincipal)
namenodePrincipal - the namenode principal.public void setRmManagerPrincipal(String rmManagerPrincipal)
rmManagerPrincipal - the resource manager principalpublic void setFsUri(String fsUri)
fsUri - the file system uripublic void setRmAddress(String rmAddress)
rmAddress - the resource manager addresspublic void setSchedulerAddress(String schedulerAddress)
schedulerAddress - the resource manager scheduler addresspublic void setConfiguration(YarnConfiguration configuration)
configuration - The configuration to set.public void setResources(Set<Resource> resources)
resources - The resources to set.public void setProperties(Properties properties)
properties - The properties to set.public void setInitialize(boolean initialize)
initialize - whether to initialize or not.public void setRegisterUrlHandler(boolean register)
register - whether to register an URL handler or notprotected YarnConfiguration createConfiguration(Configuration existing)
existing - the configuration