Browse Source

Addendum patch for HDFS-6564.

Haohui Mai 10 năm trước cách đây
mục cha
commit
0cd7603bd6

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java

@@ -208,7 +208,7 @@ public class WebHdfsFileSystem extends FileSystem
   }
 
   /** Is WebHDFS enabled in conf? */
-  public static boolean isEnabled(final Configuration conf, final Log log) {
+  public static boolean isEnabled(final Configuration conf) {
     final boolean b = conf.getBoolean(
         HdfsClientConfigKeys.DFS_WEBHDFS_ENABLED_KEY,
         HdfsClientConfigKeys.DFS_WEBHDFS_ENABLED_DEFAULT);

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeHttpServer.java

@@ -68,7 +68,7 @@ public class NameNodeHttpServer {
   }
 
   private void initWebHdfs(Configuration conf) throws IOException {
-    if (WebHdfsFileSystem.isEnabled(conf, HttpServer2.LOG)) {
+    if (WebHdfsFileSystem.isEnabled(conf)) {
       // set user pattern based on configuration file
       UserParam.setUserPattern(conf.get(
           DFSConfigKeys.DFS_WEBHDFS_USER_PATTERN_KEY,