浏览代码

YARN-3572. Correct typos in WritingYarnApplications.md. Contributed by Gabor Liptak.

Akira Ajisaka 10 年之前
父节点
当前提交
a521b50955

+ 3 - 0
hadoop-yarn-project/CHANGES.txt

@@ -339,6 +339,9 @@ Release 2.8.0 - UNRELEASED
     YARN-1832. Fix wrong MockLocalizerStatus#equals implementation.
     YARN-1832. Fix wrong MockLocalizerStatus#equals implementation.
     (Hong Zhiguo via aajisaka)
     (Hong Zhiguo via aajisaka)
 
 
+    YARN-3572. Correct typos in WritingYarnApplications.md.
+    (Gabor Liptak via aajisaka)
+
 Release 2.7.1 - UNRELEASED
 Release 2.7.1 - UNRELEASED
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 2 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/WritingYarnApplications.md

@@ -535,8 +535,8 @@ You can use the LocalResource to add resources to your application request. This
 
 
 ```java
 ```java
 File packageFile = new File(packagePath);
 File packageFile = new File(packagePath);
-Url packageUrl = ConverterUtils.getYarnUrlFromPath(
-    FileContext.getFileContext.makeQualified(new Path(packagePath)));
+URL packageUrl = ConverterUtils.getYarnUrlFromPath(
+    FileContext.getFileContext().makeQualified(new Path(packagePath)));
 
 
 packageResource.setResource(packageUrl);
 packageResource.setResource(packageUrl);
 packageResource.setSize(packageFile.length());
 packageResource.setSize(packageFile.length());