Package com.mapr.cli
Class JobLogLinkUtils
- java.lang.Object
-
- com.mapr.cli.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 voidcreateSymlinkIfAbsent(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path targetPath, org.apache.hadoop.fs.Path linkPath)static org.apache.hadoop.fs.PathgetHostDirPath(org.apache.hadoop.fs.Path dirPath)static org.apache.hadoop.fs.PathgetMapperDirPath(org.apache.hadoop.fs.Path dirPath)static org.apache.hadoop.fs.PathgetReducerDirPath(org.apache.hadoop.fs.Path dirPath)static org.apache.hadoop.fs.PathsetupTargetJobDir(org.apache.hadoop.fs.FileSystem fs, java.lang.String targetBaseDir, java.lang.String jobId, boolean mapreduce)
-
-
-
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
-
-