Class LocalJobRunner

  • All Implemented Interfaces:
    ConfigConstants

    public class LocalJobRunner
    extends Object
    implements ConfigConstants
    Runs a job in-process, potentially multi-threaded. Only supports map-only jobs.
    • Field Detail

      • LOG

        public static final org.apache.commons.logging.Log LOG
    • Constructor Detail

      • LocalJobRunner

        public LocalJobRunner​(LocalJob job,
                              org.apache.commons.cli.CommandLine cmdline,
                              Command cmd)
    • Method Detail

      • run

        public <INKEY,​INVALUE,​OUTKEY,​OUTVALUE,​T extends org.apache.hadoop.mapreduce.InputSplit> void run()
                                                                                                                          throws Exception
        Run the job. Get the input splits, create map tasks and submit it to the thread pool if there is one; otherwise, runs the the task one by one.
        Type Parameters:
        INKEY -
        INVALUE -
        OUTKEY -
        OUTVALUE -
        Throws:
        Exception
      • computeProgress

        public double computeProgress()