From 9f03a7c018bb2c497cd0ef758f1a3e08e8163d06 Mon Sep 17 00:00:00 2001 From: Allen Wittenauer Date: Fri, 19 Sep 2014 11:32:55 -0700 Subject: [PATCH] HADOOP-10946. Fix a bunch of typos in log messages (Ray Chiang via aw) --- hadoop-common-project/hadoop-common/CHANGES.txt | 2 ++ .../java/org/apache/hadoop/io/VersionMismatchException.java | 2 +- .../org/apache/hadoop/metrics/util/MetricsDynamicMBeanBase.java | 2 +- .../src/main/java/org/apache/hadoop/util/DiskChecker.java | 2 +- .../java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java | 2 +- .../src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java | 2 +- .../src/main/java/org/apache/hadoop/streaming/StreamJob.java | 2 +- 7 files changed, 8 insertions(+), 6 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 90053fcb60..7fc3b5b098 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -838,6 +838,8 @@ Release 2.6.0 - UNRELEASED HADOOP-11109. Site build is broken. (Jian He via atm) + HADOOP-10946. Fix a bunch of typos in log messages (Ray Chiang via aw) + Release 2.5.1 - 2014-09-05 INCOMPATIBLE CHANGES diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/VersionMismatchException.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/VersionMismatchException.java index a72be58832..015c15e8a6 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/VersionMismatchException.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/VersionMismatchException.java @@ -41,7 +41,7 @@ public VersionMismatchException(byte expectedVersionIn, byte foundVersionIn){ /** Returns a string representation of this object. */ @Override public String toString(){ - return "A record version mismatch occured. Expecting v" + return "A record version mismatch occurred. Expecting v" + expectedVersion + ", found v" + foundVersion; } } diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsDynamicMBeanBase.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsDynamicMBeanBase.java index 57014d5781..9c9164eaf4 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsDynamicMBeanBase.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsDynamicMBeanBase.java @@ -160,7 +160,7 @@ else if (attributeName.endsWith(MIN_TIME)) else if (attributeName.endsWith(MAX_TIME)) return or.getMaxTime(); else { - MetricsUtil.LOG.error("Unexpected attrubute suffix"); + MetricsUtil.LOG.error("Unexpected attribute suffix"); throw new AttributeNotFoundException(); } } else { diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/DiskChecker.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/DiskChecker.java index f2ee446b4a..6b27ae5397 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/DiskChecker.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/DiskChecker.java @@ -102,7 +102,7 @@ public static void checkDirs(File dir) throws DiskErrorException { */ public static void checkDir(File dir) throws DiskErrorException { if (!mkdirsWithExistsCheck(dir)) { - throw new DiskErrorException("Can not create directory: " + throw new DiskErrorException("Cannot create directory: " + dir.toString()); } checkDirAccess(dir); diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java index 577711f4ce..dae957ee30 100644 --- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java +++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java @@ -1095,7 +1095,7 @@ public boolean rename(Path src, Path dst) throws IOException { if (dstKey.startsWith(srcKey + PATH_DELIMITER)) { if (LOG.isDebugEnabled()) { - LOG.debug("Renaming directory to a itself is disallowed. src=" + src + LOG.debug("Renaming directory to itself is disallowed. src=" + src + " dest=" + dst); } return false; diff --git a/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java b/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java index 4620cfc5a2..8ac590bfb6 100644 --- a/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java +++ b/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java @@ -681,7 +681,7 @@ public void run() { } catch (IOException e) { LOG.warn("Failure killing " + job.getJobName(), e); } catch (Exception e) { - LOG.error("Unexcpected exception", e); + LOG.error("Unexpected exception", e); } } LOG.info("Done."); diff --git a/hadoop-tools/hadoop-streaming/src/main/java/org/apache/hadoop/streaming/StreamJob.java b/hadoop-tools/hadoop-streaming/src/main/java/org/apache/hadoop/streaming/StreamJob.java index c64c0b63b0..7ff5641bf8 100644 --- a/hadoop-tools/hadoop-streaming/src/main/java/org/apache/hadoop/streaming/StreamJob.java +++ b/hadoop-tools/hadoop-streaming/src/main/java/org/apache/hadoop/streaming/StreamJob.java @@ -1016,7 +1016,7 @@ public int submitAndMonitorJob() throws IOException { if (background_) { LOG.info("Job is running in background."); } else if (!jc_.monitorAndPrintJob(jobConf_, running_)) { - LOG.error("Job not Successful!"); + LOG.error("Job not successful!"); return 1; } LOG.info("Output directory: " + output_);