org.apache.hadoop.mapred
Class JobShell

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.hadoop.mapred.JobShell
All Implemented Interfaces:
Configurable, Tool

public class JobShell
extends Configured
implements Tool

Provide command line parsing for JobSubmission job submission looks like hadoop jar -libjars -archives -files inputjar args


Constructor Summary
JobShell()
           
JobShell(Configuration conf)
           
 
Method Summary
protected  void init()
           
static void main(String[] argv)
           
 int run(String[] argv)
          run method from Tool
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
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, setConf
 

Constructor Detail

JobShell

public JobShell()

JobShell

public JobShell(Configuration conf)
Method Detail

init

protected void init()
             throws IOException
Throws:
IOException

run

public int run(String[] argv)
        throws Exception
run method from Tool

Specified by:
run in interface Tool
Parameters:
argv - command specific arguments.
Returns:
exit code.
Throws:
Exception

main

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


Copyright © 2008 The Apache Software Foundation