Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change 
notification.

The "WritingYarnApps" page has been changed by ChrisRiccomini:
http://wiki.apache.org/hadoop/WritingYarnApps?action=diff&rev1=6&rev2=7

  
  You can use the LocalResource to add resources to your application request. 
This will cause YARN to distribute the resource to the application master node, 
and all of the the container nodes. If the resource is a tgz, zip, or jar, you 
can have YARN unzip it. Then, all you need to do is add the unzipped folder to 
your classpath. For example, when creating your application request:
  
+ {{{
- {{{    val packageFile = new File(packagePath);
+     val packageFile = new File(packagePath);
      val packageUrl = 
ConverterUtils.getYarnUrlFromPath(FileContext.getFileContext.makeQualified(new 
Path(packagePath)));
  
      packageResource.setResource(packageUrl);

Reply via email to