From 56484f1b0f684ca0aec51146b6e93de18683ab9d Mon Sep 17 00:00:00 2001 From: dineshchitlangia Date: Fri, 14 Jun 2019 01:08:35 -0400 Subject: [PATCH 1/3] HADOOP-16372. Fix typo in DFSUtil getHttpPolicy method --- .../src/main/java/org/apache/hadoop/hdfs/DFSUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java index 3cdf66d4f318a..b1af697a4e6eb 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java @@ -1476,7 +1476,7 @@ public static HttpConfig.Policy getHttpPolicy(Configuration conf) { DFSConfigKeys.DFS_HTTP_POLICY_DEFAULT); HttpConfig.Policy policy = HttpConfig.Policy.fromString(policyStr); if (policy == null) { - throw new HadoopIllegalArgumentException("Unregonized value '" + throw new HadoopIllegalArgumentException("Unrecognized value '" + policyStr + "' for " + DFSConfigKeys.DFS_HTTP_POLICY_KEY); } From 424713c38ae256c27104cd22152ae3742e390d4f Mon Sep 17 00:00:00 2001 From: dineshchitlangia Date: Fri, 14 Jun 2019 01:21:34 -0400 Subject: [PATCH 2/3] HADOOP-16373. Fix typo in FileSystemShell#test documentation --- .../hadoop-common/src/site/markdown/FileSystemShell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md index 44927f2464489..93385b42d4f08 100644 --- a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md +++ b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md @@ -737,7 +737,7 @@ Usage: `hadoop fs -test -[defsz] URI` Options: -* -d: f the path is a directory, return 0. +* -d: if the path is a directory, return 0. * -e: if the path exists, return 0. * -f: if the path is a file, return 0. * -s: if the path is not empty, return 0. From 857874606079dd58de17054b674efd3d7f7ecc44 Mon Sep 17 00:00:00 2001 From: dineshchitlangia Date: Fri, 14 Jun 2019 17:30:49 -0400 Subject: [PATCH 3/3] Revert "HADOOP-16372. Fix typo in DFSUtil getHttpPolicy method" This reverts commit 56484f1b0f684ca0aec51146b6e93de18683ab9d. --- .../src/main/java/org/apache/hadoop/hdfs/DFSUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java index b1af697a4e6eb..3cdf66d4f318a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java @@ -1476,7 +1476,7 @@ public static HttpConfig.Policy getHttpPolicy(Configuration conf) { DFSConfigKeys.DFS_HTTP_POLICY_DEFAULT); HttpConfig.Policy policy = HttpConfig.Policy.fromString(policyStr); if (policy == null) { - throw new HadoopIllegalArgumentException("Unrecognized value '" + throw new HadoopIllegalArgumentException("Unregonized value '" + policyStr + "' for " + DFSConfigKeys.DFS_HTTP_POLICY_KEY); }