Package com.mapr.cli
Class JobLogLinkUtils
java.lang.Object
com.mapr.cli.JobLogLinkUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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, String targetBaseDir, String jobId, boolean mapreduce)
-
Constructor Details
-
JobLogLinkUtils
public JobLogLinkUtils()
-
-
Method Details
-
setupTargetJobDir
public static org.apache.hadoop.fs.Path setupTargetJobDir(org.apache.hadoop.fs.FileSystem fs, String targetBaseDir, String jobId, boolean mapreduce) throws IOException - Throws:
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 IOException - Throws:
IOException
-