@InterfaceAudience.Private @InterfaceStability.Evolving public class NodeFencer extends Object
The fencing methods are configured as a carriage-return separated list. Each line in the list is of the form:
com.example.foo.MyMethod(arg string)
or
com.example.foo.MyMethod
The class provided must implement the FenceMethod
interface.
The fencing methods that ship with Hadoop may also be referred to
by shortened names:
shell(/path/to/some/script.sh args...)
sshfence(...)
(see SshFenceByTcpPort
)
Modifier and Type | Method and Description |
---|---|
static NodeFencer |
create(Configuration conf,
String confKey) |
boolean |
fence(HAServiceTarget fromSvc) |
public static NodeFencer create(Configuration conf, String confKey) throws BadFencingConfigurationException
BadFencingConfigurationException
public boolean fence(HAServiceTarget fromSvc)
Copyright © 2013 Apache Software Foundation. All rights reserved.