public class ConfigurationFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean<org.apache.hadoop.yarn.conf.YarnConfiguration>
YarnConfiguration instances.| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | USERKEYTAB | 
| static java.lang.String | USERPRINCIPAL | 
| Constructor and Description | 
|---|
| ConfigurationFactoryBean() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterPropertiesSet() | 
| protected org.apache.hadoop.yarn.conf.YarnConfiguration | createConfiguration(org.apache.hadoop.conf.Configuration existing)Creates a configuration instance potentially using the existing one (passed as an argument - which can be null). | 
| org.apache.hadoop.yarn.conf.YarnConfiguration | getObject() | 
| java.lang.Class<org.apache.hadoop.yarn.conf.YarnConfiguration> | getObjectType() | 
| boolean | isSingleton() | 
| void | setBeanClassLoader(java.lang.ClassLoader classLoader) | 
| void | setConfiguration(org.apache.hadoop.yarn.conf.YarnConfiguration configuration)Sets the parent configuration. | 
| void | setFsUri(java.lang.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(java.lang.String namenodePrincipal)Sets the used namenode principal. | 
| void | setProperties(java.util.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(java.util.Set<org.springframework.core.io.Resource> resources)Sets the configuration resources. | 
| void | setRmAddress(java.lang.String rmAddress)Sets the Yarn ('yarn.resourcemanager.address') address. | 
| void | setRmManagerPrincipal(java.lang.String rmManagerPrincipal)Sets the used resource manager principal. | 
| void | setSchedulerAddress(java.lang.String schedulerAddress)Sets the Yarn ('yarn.resourcemanager.scheduler.address') address. | 
| void | setSecurityAuthMethod(SecurityAuthMethod securityAuthMethod)Sets the security auth method. | 
| void | setUserKeytab(java.lang.String userKeytab)Sets the user keytab. | 
| void | setUserPrincipal(java.lang.String userPrincipal)Sets the user principal. | 
public static final java.lang.String USERKEYTAB
public static final java.lang.String USERPRINCIPAL
public org.apache.hadoop.yarn.conf.YarnConfiguration getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.yarn.conf.YarnConfiguration>public java.lang.Class<org.apache.hadoop.yarn.conf.YarnConfiguration> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.yarn.conf.YarnConfiguration>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.yarn.conf.YarnConfiguration>public void setBeanClassLoader(java.lang.ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwarepublic void afterPropertiesSet()
                        throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void setSecurityAuthMethod(SecurityAuthMethod securityAuthMethod)
securityAuthMethod - the new security auth methodpublic void setUserPrincipal(java.lang.String userPrincipal)
userPrincipal - the new user principalpublic void setUserKeytab(java.lang.String userKeytab)
userKeytab - the new user keytabpublic void setNamenodePrincipal(java.lang.String namenodePrincipal)
namenodePrincipal - the namenode principal.public void setRmManagerPrincipal(java.lang.String rmManagerPrincipal)
rmManagerPrincipal - the resource manager principalpublic void setFsUri(java.lang.String fsUri)
fsUri - the file system uripublic void setRmAddress(java.lang.String rmAddress)
rmAddress - the resource manager addresspublic void setSchedulerAddress(java.lang.String schedulerAddress)
schedulerAddress - the resource manager scheduler addresspublic void setConfiguration(org.apache.hadoop.yarn.conf.YarnConfiguration configuration)
configuration - The configuration to set.public void setResources(java.util.Set<org.springframework.core.io.Resource> resources)
resources - The resources to set.public void setProperties(java.util.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 org.apache.hadoop.yarn.conf.YarnConfiguration createConfiguration(org.apache.hadoop.conf.Configuration existing)
existing - the configuration