Package com.mapr.cli

Class JobLogLinkUtils


  • public final class JobLogLinkUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      JobLogLinkUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createSymlinkIfAbsent​(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path targetPath, org.apache.hadoop.fs.Path linkPath)  
      static org.apache.hadoop.fs.Path getHostDirPath​(org.apache.hadoop.fs.Path dirPath)  
      static org.apache.hadoop.fs.Path getMapperDirPath​(org.apache.hadoop.fs.Path dirPath)  
      static org.apache.hadoop.fs.Path getReducerDirPath​(org.apache.hadoop.fs.Path dirPath)  
      static org.apache.hadoop.fs.Path setupTargetJobDir​(org.apache.hadoop.fs.FileSystem fs, java.lang.String targetBaseDir, java.lang.String jobId, boolean mapreduce)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JobLogLinkUtils

        public JobLogLinkUtils()
    • Method Detail

      • setupTargetJobDir

        public static org.apache.hadoop.fs.Path setupTargetJobDir​(org.apache.hadoop.fs.FileSystem fs,
                                                                  java.lang.String targetBaseDir,
                                                                  java.lang.String jobId,
                                                                  boolean mapreduce)
                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getHostDirPath

        public static org.apache.hadoop.fs.Path getHostDirPath​(org.apache.hadoop.fs.Path dirPath)
      • getMapperDirPath

        public static org.apache.hadoop.fs.Path getMapperDirPath​(org.apache.hadoop.fs.Path dirPath)
      • getReducerDirPath

        public static org.apache.hadoop.fs.Path getReducerDirPath​(org.apache.hadoop.fs.Path dirPath)
      • createSymlinkIfAbsent

        public static void createSymlinkIfAbsent​(org.apache.hadoop.fs.FileSystem fs,
                                                 org.apache.hadoop.fs.Path targetPath,
                                                 org.apache.hadoop.fs.Path linkPath)
                                          throws java.io.IOException
        Throws:
        java.io.IOException