Package org.apache.hadoop.hdfs.tools
Class DFSZKFailoverController
java.lang.Object
org.apache.hadoop.ha.ZKFailoverController
org.apache.hadoop.hdfs.tools.DFSZKFailoverController
@Private
public class DFSZKFailoverController
extends org.apache.hadoop.ha.ZKFailoverController
-
Field Summary
Fields inherited from class org.apache.hadoop.ha.ZKFailoverController
conf, localTarget, rpcServer, USAGE, ZK_ACL_KEY, ZK_AUTH_KEY, ZK_QUORUM_KEY, ZKFC_CONF_KEYS -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic DFSZKFailoverControllercreate(org.apache.hadoop.conf.Configuration conf) protected org.apache.hadoop.ha.HAServiceTargetdataToTarget(byte[] data) List<org.apache.hadoop.ha.HAServiceTarget>protected org.apache.hadoop.security.authorize.PolicyProviderprotected InetSocketAddressprotected Stringprotected voidinitRPC()protected booleanvoidstatic voidprotected voidsetLastHealthState(org.apache.hadoop.ha.HealthMonitor.State newState) protected byte[]targetToData(org.apache.hadoop.ha.HAServiceTarget target) Methods inherited from class org.apache.hadoop.ha.ZKFailoverController
getElectorForTests, getLastHealthState, getLocalTarget, getServiceState, run, startRPC
-
Method Details
-
dataToTarget
protected org.apache.hadoop.ha.HAServiceTarget dataToTarget(byte[] data) - Specified by:
dataToTargetin classorg.apache.hadoop.ha.ZKFailoverController
-
targetToData
protected byte[] targetToData(org.apache.hadoop.ha.HAServiceTarget target) - Specified by:
targetToDatain classorg.apache.hadoop.ha.ZKFailoverController
-
getRpcAddressToBindTo
- Specified by:
getRpcAddressToBindToin classorg.apache.hadoop.ha.ZKFailoverController
-
getPolicyProvider
protected org.apache.hadoop.security.authorize.PolicyProvider getPolicyProvider()- Specified by:
getPolicyProviderin classorg.apache.hadoop.ha.ZKFailoverController
-
create
-
initRPC
- Overrides:
initRPCin classorg.apache.hadoop.ha.ZKFailoverController- Throws:
IOException
-
loginAsFCUser
- Specified by:
loginAsFCUserin classorg.apache.hadoop.ha.ZKFailoverController- Throws:
IOException
-
getScopeInsideParentNode
- Specified by:
getScopeInsideParentNodein classorg.apache.hadoop.ha.ZKFailoverController
-
main
- Throws:
Exception
-
checkRpcAdminAccess
protected void checkRpcAdminAccess() throws IOException, org.apache.hadoop.security.AccessControlException- Specified by:
checkRpcAdminAccessin classorg.apache.hadoop.ha.ZKFailoverController- Throws:
IOExceptionorg.apache.hadoop.security.AccessControlException
-
setLastHealthState
protected void setLastHealthState(org.apache.hadoop.ha.HealthMonitor.State newState) - Overrides:
setLastHealthStatein classorg.apache.hadoop.ha.ZKFailoverController
-
getAllOtherNodes
- Specified by:
getAllOtherNodesin classorg.apache.hadoop.ha.ZKFailoverController
-
isSSLEnabled
protected boolean isSSLEnabled()- Specified by:
isSSLEnabledin classorg.apache.hadoop.ha.ZKFailoverController
-