本文整理汇总了Java中org.apache.hadoop.mapreduce.v2.api.records.JobId.toString方法的典型用法代码示例。如果您正苦于以下问题:Java JobId.toString方法的具体用法?Java JobId.toString怎么用?Java JobId.toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.mapreduce.v2.api.records.JobId
的用法示例。
在下文中一共展示了JobId.toString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getStartJobCommitFile
import org.apache.hadoop.mapreduce.v2.api.records.JobId; //导入方法依赖的package包/类
public static Path getStartJobCommitFile(Configuration conf, String user,
JobId jobId) {
Path startCommitFile = new Path(MRApps.getStagingAreaDir(conf, user),
jobId.toString() + Path.SEPARATOR + "COMMIT_STARTED");
return startCommitFile;
}
示例2: createJhistFile
import org.apache.hadoop.mapreduce.v2.api.records.JobId; //导入方法依赖的package包/类
/**
* Create a dummy .jhist file under the intermediate directory for given job.
* @param jobId the id of the given job
* @return true if file is created successfully, false otherwise
*/
private static boolean createJhistFile(JobId jobId) throws IOException {
StringBuilder fileName = new StringBuilder(jobId.toString());
long finishTime = System.currentTimeMillis();
fileName.append("-").append(finishTime - 1000)
.append("-").append("test")
.append("-").append(jobId.getId())
.append("-").append(finishTime)
.append(".jhist");
File jhistFile = new File(USER_DIR, fileName.toString());
return jhistFile.createNewFile();
}
示例3: toString
import org.apache.hadoop.mapreduce.v2.api.records.JobId; //导入方法依赖的package包/类
public static String toString(JobId jid) {
return jid.toString();
}
示例4: getEndJobCommitSuccessFile
import org.apache.hadoop.mapreduce.v2.api.records.JobId; //导入方法依赖的package包/类
public static Path getEndJobCommitSuccessFile(Configuration conf, String user,
JobId jobId) {
Path endCommitFile = new Path(MRApps.getStagingAreaDir(conf, user),
jobId.toString() + Path.SEPARATOR + "COMMIT_SUCCESS");
return endCommitFile;
}
示例5: getEndJobCommitFailureFile
import org.apache.hadoop.mapreduce.v2.api.records.JobId; //导入方法依赖的package包/类
public static Path getEndJobCommitFailureFile(Configuration conf, String user,
JobId jobId) {
Path endCommitFile = new Path(MRApps.getStagingAreaDir(conf, user),
jobId.toString() + Path.SEPARATOR + "COMMIT_FAIL");
return endCommitFile;
}