Class PowerShellFencer

java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.ha.PowerShellFencer
All Implemented Interfaces:
Configurable, FenceMethod

public class PowerShellFencer extends Configured implements FenceMethod
Fencer method that uses PowerShell to remotely connect to a machine and kill the required process. This only works in Windows. Fencing method uses PowerShell command. It should be specified in the fencing configuration like:
powershell(NameNode) The argument passed to this fencer should be a unique string in the "CommandLine" attribute for the "java.exe" process. For example, the full path for the Namenode: "org.apache.hadoop.hdfs.server.namenode.NameNode". The administrator can also shorten the name to "Namenode" if it's unique.