org.apache.hadoop.mapred.tools
Class MRHAAdmin

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.hadoop.ha.HAAdmin
          extended by org.apache.hadoop.mapred.tools.MRHAAdmin
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

public class MRHAAdmin
extends org.apache.hadoop.ha.HAAdmin


Field Summary
 
Fields inherited from class org.apache.hadoop.ha.HAAdmin
errOut, out
 
Constructor Summary
MRHAAdmin()
           
 
Method Summary
static org.apache.hadoop.conf.Configuration addSecurityConfiguration(org.apache.hadoop.conf.Configuration conf)
          Add the requisite security principal settings to the given Configuration, returning a copy.
protected  java.lang.String getUsageString()
           
static void main(java.lang.String[] argv)
           
protected  org.apache.hadoop.ha.HAServiceTarget resolveTarget(java.lang.String jtId)
           
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
protected  void setErrOut(java.io.PrintStream errOut)
           
protected  void setOut(java.io.PrintStream out)
           
 
Methods inherited from class org.apache.hadoop.ha.HAAdmin
getServiceAddr, printUsage, run, runCmd
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf
 

Constructor Detail

MRHAAdmin

public MRHAAdmin()
Method Detail

setErrOut

protected void setErrOut(java.io.PrintStream errOut)

setOut

protected void setOut(java.io.PrintStream out)

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable
Overrides:
setConf in class org.apache.hadoop.ha.HAAdmin

addSecurityConfiguration

public static org.apache.hadoop.conf.Configuration addSecurityConfiguration(org.apache.hadoop.conf.Configuration conf)
Add the requisite security principal settings to the given Configuration, returning a copy.

Parameters:
conf - the original config
Returns:
a copy with the security settings added

resolveTarget

protected org.apache.hadoop.ha.HAServiceTarget resolveTarget(java.lang.String jtId)
Specified by:
resolveTarget in class org.apache.hadoop.ha.HAAdmin

getUsageString

protected java.lang.String getUsageString()
Overrides:
getUsageString in class org.apache.hadoop.ha.HAAdmin

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2009 The Apache Software Foundation