Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.yarn.api.records.LocalResource |
getLocalResourceForPath(org.apache.hadoop.fs.Path jarPath,
org.apache.hadoop.yarn.api.records.LocalResourceType type)
Creates a LocalResource instance for the JAR file referenced by the given Path.
|
org.apache.hadoop.fs.Path |
getPath() |
org.apache.hadoop.fs.Path |
upload(File localFile)
Uploads the given file to the DFS.
|
org.apache.hadoop.yarn.api.records.LocalResource |
uploadAsLocalResource(File localFile,
org.apache.hadoop.yarn.api.records.LocalResourceType type)
Shortcut to first upload the file and then form a LocalResource for the YARN submission.
|
public org.apache.hadoop.fs.Path upload(File localFile) throws IOException
localFile
- IOException
public org.apache.hadoop.yarn.api.records.LocalResource uploadAsLocalResource(File localFile, org.apache.hadoop.yarn.api.records.LocalResourceType type) throws IOException
localFile
- IOException
public org.apache.hadoop.yarn.api.records.LocalResource getLocalResourceForPath(org.apache.hadoop.fs.Path jarPath, org.apache.hadoop.yarn.api.records.LocalResourceType type) throws IOException
IOException
public org.apache.hadoop.fs.Path getPath()
Copyright © 2016 The Apache Software Foundation. All rights reserved.