public final class FederationUtil
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Set<java.lang.String> |
getAllConfiguredNS(org.apache.hadoop.conf.Configuration conf) |
Collect all configured nameservices.
|
static java.lang.String |
getCompileInfo() |
Fetch the build/compile information for this jar.
|
static org.codehaus.jettison.json.JSONArray |
getJmx(java.lang.String beanQuery,
java.lang.String webAddress,
org.apache.hadoop.hdfs.web.URLConnectionFactory connectionFactory,
java.lang.String scheme) |
Get a JMX data from a web endpoint.
|
static java.lang.String |
getVersion() |
Fetch the Hadoop version string for this jar.
|
static ActiveNamenodeResolver |
newActiveNamenodeResolver(org.apache.hadoop.conf.Configuration conf,
StateStoreService stateStore) |
Creates an instance of an ActiveNamenodeResolver from the configuration.
|
static RouterRpcFairnessPolicyController |
newFairnessPolicyController(org.apache.hadoop.conf.Configuration conf) |
Creates an instance of an RouterRpcFairnessPolicyController
from the configuration.
|
static FileSubclusterResolver |
newFileSubclusterResolver(org.apache.hadoop.conf.Configuration conf,
Router router) |
Creates an instance of a FileSubclusterResolver from the configuration.
|
static org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> |
newSecretManager(org.apache.hadoop.conf.Configuration conf) |
Creates an instance of DelegationTokenSecretManager from the
configuration.
|
static org.apache.hadoop.hdfs.protocol.HdfsFileStatus |
updateMountPointStatus(org.apache.hadoop.hdfs.protocol.HdfsFileStatus dirStatus,
int children) |
Add the number of children for an existing HdfsFileStatus object.
|
public static org.codehaus.jettison.json.JSONArray getJmx(java.lang.String beanQuery,
java.lang.String webAddress,
org.apache.hadoop.hdfs.web.URLConnectionFactory connectionFactory,
java.lang.String scheme)
beanQuery - JMX bean.webAddress - Web address of the JMX endpoint.connectionFactory - to open http/https connection.scheme - to use for URL connection.public static java.lang.String getVersion()
public static java.lang.String getCompileInfo()
public static FileSubclusterResolver newFileSubclusterResolver(org.apache.hadoop.conf.Configuration conf, Router router)
conf - Configuration that defines the file resolver class.router - Router service.public static ActiveNamenodeResolver newActiveNamenodeResolver(org.apache.hadoop.conf.Configuration conf, StateStoreService stateStore)
conf - Configuration that defines the namenode resolver class.stateStore - State store passed to class constructor.public static org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> newSecretManager(org.apache.hadoop.conf.Configuration conf)
conf - Configuration that defines the token manager class.public static org.apache.hadoop.hdfs.protocol.HdfsFileStatus updateMountPointStatus(org.apache.hadoop.hdfs.protocol.HdfsFileStatus dirStatus,
int children)
dirStatus - HdfsfileStatus object.children - number of children to be added.public static RouterRpcFairnessPolicyController newFairnessPolicyController(org.apache.hadoop.conf.Configuration conf)
conf - Configuration that defines the fairness controller class.public static java.util.Set<java.lang.String> getAllConfiguredNS(org.apache.hadoop.conf.Configuration conf)
throws java.lang.IllegalArgumentException
conf - the configuration object.java.lang.IllegalArgumentException - if monitored namenodes are not correctly configured.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.