org.elasticsearch.hadoop.mr
Class HadoopCfgUtils
java.lang.Object
org.elasticsearch.hadoop.mr.HadoopCfgUtils
public abstract class HadoopCfgUtils
- extends Object
Class which handles the various Hadoop properties, aware of the changes between YARN (Hadoop 2) and 1.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HadoopCfgUtils
public HadoopCfgUtils()
isLocal
public static boolean isLocal(Configuration cfg)
getFileSystem
public static String getFileSystem(Configuration cfg)
setFileSystem
public static void setFileSystem(Configuration cfg,
String value)
getJobTracker
public static String getJobTracker(Configuration cfg)
setJobTracker
public static void setJobTracker(Configuration cfg,
String value)
getFileOutputFormatDir
public static String getFileOutputFormatDir(Configuration cfg)
setFileOutputFormatDir
public static void setFileOutputFormatDir(Configuration cfg,
String value)
getOutputCommitterClass
public static String getOutputCommitterClass(Configuration cfg)
setOutputCommitterClass
public static void setOutputCommitterClass(Configuration cfg,
String value)
getTaskAttemptId
public static String getTaskAttemptId(Configuration cfg)
getReduceTasks
public static String getReduceTasks(Configuration cfg)
getSpeculativeReduce
public static boolean getSpeculativeReduce(Configuration cfg)
getSpeculativeMap
public static boolean getSpeculativeMap(Configuration cfg)
setGenericOptions
public static void setGenericOptions(Configuration cfg)