From c7f3dd1eb3b19a70dee137a4aac4ed3a2115f459 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Fri, 8 May 2015 13:24:29 +0900 Subject: [PATCH] YARN-3572. Correct typos in WritingYarnApplications.md. Contributed by Gabor Liptak. (cherry picked from commit a521b509551e092dfeb38cdf29bb96556d3e0266) --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../src/site/markdown/WritingYarnApplications.md | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index e871ef0032c..b49940dab32 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -294,6 +294,9 @@ Release 2.8.0 - UNRELEASED YARN-1832. Fix wrong MockLocalizerStatus#equals implementation. (Hong Zhiguo via aajisaka) + YARN-3572. Correct typos in WritingYarnApplications.md. + (Gabor Liptak via aajisaka) + Release 2.7.1 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/WritingYarnApplications.md b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/WritingYarnApplications.md index 03b296488de..d5a7a1791dc 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/WritingYarnApplications.md +++ b/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 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.setSize(packageFile.length());