Java Code Examples for org.apache.tez.dag.api.TezConfiguration#TEZ_PB_PLAN_BINARY_NAME

The following examples show how to use org.apache.tez.dag.api.TezConfiguration#TEZ_PB_PLAN_BINARY_NAME . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestTezCommonUtils.java    From incubator-tez with Apache License 2.0 5 votes vote down vote up
@Test
public void testTezBinPlanStagingPath() throws Exception {
  String strAppId = "testAppId";
  Path stageDir = TezCommonUtils.getTezSystemStagingPath(conf, strAppId);
  Path confStageDir = TezCommonUtils.getTezBinPlanStagingPath(stageDir);
  String expectedDir = RESOLVED_STAGE_DIR + File.separatorChar
      + TezCommonUtils.TEZ_SYSTEM_SUB_DIR + File.separatorChar + strAppId + File.separator
      + TezConfiguration.TEZ_PB_PLAN_BINARY_NAME;
  Assert.assertEquals(confStageDir.toString(), expectedDir);
}
 
Example 2
Source File: TezCommonUtils.java    From incubator-tez with Apache License 2.0 2 votes vote down vote up
/**
 * <p>
 * Returns a path to store binary plan
 * </p>
 * 
 * @param tezSysStagingPath
 *          TEZ system level staging directory used for Tez internals
 * @return path to store the plan in binary
 */
@Private
public static Path getTezBinPlanStagingPath(Path tezSysStagingPath) {
  return new Path(tezSysStagingPath, TezConfiguration.TEZ_PB_PLAN_BINARY_NAME);
}