当前位置: 首页>>代码示例>>Java>>正文


Java JobId.toString方法代码示例

本文整理汇总了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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:MRApps.java

示例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();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:17,代码来源:TestUnnecessaryBlockingOnHistoryFileInfo.java

示例3: toString

import org.apache.hadoop.mapreduce.v2.api.records.JobId; //导入方法依赖的package包/类
public static String toString(JobId jid) {
  return jid.toString();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:4,代码来源:MRApps.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:MRApps.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:MRApps.java


注:本文中的org.apache.hadoop.mapreduce.v2.api.records.JobId.toString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。