org.apache.oozie.action.hadoop
Class LauncherMain

java.lang.Object
  extended by org.apache.oozie.action.hadoop.LauncherMain
Direct Known Subclasses:
HiveMain, MapReduceMain, PigMain, PigMainWithOldAPI, ShellMain, SqoopMain

public abstract class LauncherMain
extends Object


Field Summary
static String HADOOP_JOBS
           
 
Constructor Summary
LauncherMain()
           
 
Method Summary
static Properties getHadoopJobIds(String logFile, Pattern[] patterns)
           
protected static void logMasking(String header, Collection<String> maskSet, Iterable conf)
          Write to STDOUT (the task log) the Configuration/Properties values.
protected static void run(Class<? extends LauncherMain> klass, String[] args)
           
protected abstract  void run(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HADOOP_JOBS

public static final String HADOOP_JOBS
See Also:
Constant Field Values
Constructor Detail

LauncherMain

public LauncherMain()
Method Detail

run

protected static void run(Class<? extends LauncherMain> klass,
                          String[] args)
                   throws Exception
Throws:
Exception

getHadoopJobIds

public static Properties getHadoopJobIds(String logFile,
                                         Pattern[] patterns)
                                  throws IOException
Throws:
IOException

run

protected abstract void run(String[] args)
                     throws Exception
Throws:
Exception

logMasking

protected static void logMasking(String header,
                                 Collection<String> maskSet,
                                 Iterable conf)
                          throws IOException
Write to STDOUT (the task log) the Configuration/Properties values. All properties that contain any of the strings in the maskSet will be masked when writting it to STDOUT.

Parameters:
header - message for the beginning of the Configuration/Properties dump.
maskSet - set with substrings of property names to mask.
conf - Configuration/Properties object to dump to STDOUT
Throws:
IOException - thrown if an IO error ocurred.


Copyright © 2012 Apache Software Foundation. All Rights Reserved.