hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "WritingYarnApps" by ChrisRiccomini
Date Wed, 21 Sep 2011 04:05:50 GMT
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);

Mime
View raw message