Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.yarn.api.records.LocalResource |
getLocalResourceForPath(org.apache.hadoop.fs.Path path)
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)
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) throws IOException
localFile
- IOException
public org.apache.hadoop.yarn.api.records.LocalResource getLocalResourceForPath(org.apache.hadoop.fs.Path path) throws IOException
IOException
public org.apache.hadoop.fs.Path getPath()
Copyright © 2015 The Apache Software Foundation. All rights reserved.