Class ContextUtils


  • public final class ContextUtils
    extends Object
    This class define utility methods on Context.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Method Detail

      • getJobDirectory

        public static DataFile getJobDirectory​(TaskContext context)
        Get the job directory.
        Returns:
        Returns the job directory
      • getJarPathname

        public static DataFile getJarPathname​(TaskContext context)
        Get the application jar file.
        Returns:
        Returns the jar file
      • getLocalWorkingDirectory

        public static DataFile getLocalWorkingDirectory​(TaskContext context)
        Get the local working directory.
        Returns:
        Returns the local working directory
      • getHadoopWorkingDirectory

        public static DataFile getHadoopWorkingDirectory​(TaskContext context)
        Get the Hadoop working directory.
        Returns:
        Returns the Hadoop working directory
      • getTaskOutputDirectory

        public static DataFile getTaskOutputDirectory​(TaskContext context)
        Get the task output directory.
        Returns:
        Returns the task output directory