Java Code Examples for org.apache.hadoop.yarn.api.records.LocalResourceType#ARCHIVE
The following examples show how to use
org.apache.hadoop.yarn.api.records.LocalResourceType#ARCHIVE .
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: DagTypeConverters.java From incubator-tez with Apache License 2.0 | 5 votes |
public static LocalResourceType convertFromDAGPlan(PlanLocalResourceType type) { switch(type){ case ARCHIVE : return LocalResourceType.ARCHIVE; case FILE : return LocalResourceType.FILE; case PATTERN : return LocalResourceType.PATTERN; default : throw new IllegalArgumentException("unknown 'type': " + type); } }
Example 2
Source File: DagTypeConverters.java From tez with Apache License 2.0 | 5 votes |
public static LocalResourceType convertFromDAGPlan(PlanLocalResourceType type) { switch(type){ case ARCHIVE : return LocalResourceType.ARCHIVE; case FILE : return LocalResourceType.FILE; case PATTERN : return LocalResourceType.PATTERN; default : throw new IllegalArgumentException("unknown 'type': " + type); } }
Example 3
Source File: MRApps.java From hadoop with Apache License 2.0 | 4 votes |
private static String getResourceDescription(LocalResourceType type) { if(type == LocalResourceType.ARCHIVE || type == LocalResourceType.PATTERN) { return "cache archive (" + MRJobConfig.CACHE_ARCHIVES + ") "; } return "cache file (" + MRJobConfig.CACHE_FILES + ") "; }
Example 4
Source File: MRApps.java From big-c with Apache License 2.0 | 4 votes |
private static String getResourceDescription(LocalResourceType type) { if(type == LocalResourceType.ARCHIVE || type == LocalResourceType.PATTERN) { return "cache archive (" + MRJobConfig.CACHE_ARCHIVES + ") "; } return "cache file (" + MRJobConfig.CACHE_FILES + ") "; }