[
https://issues.apache.org/jira/browse/HDFS-16995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17717114#comment-17717114
]
ASF GitHub Bot commented on HDFS-16995:
---------------------------------------
ayushtkn commented on code in PR #5601:
URL: https://github.com/apache/hadoop/pull/5601#discussion_r1178976624
##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeHttpServer.java:
##########
@@ -76,10 +76,9 @@ public class NameNodeHttpServer {
this.bindAddress = bindAddress;
}
- public static void initWebHdfs(Configuration conf, String hostname,
- String httpKeytab,
- HttpServer2 httpServer2, String jerseyResourcePackage)
- throws IOException {
+ public static void initWebHdfs(Configuration conf, HttpServer2 httpServer2,
+ String jerseyResourcePackage)
+ throws IOException {
Review Comment:
code isn't formatted properly
##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeHttpServer.java:
##########
@@ -159,9 +158,8 @@ void start() throws IOException {
httpServer.setAttribute(DFSConfigKeys.DFS_DATANODE_HTTPS_PORT_KEY,
datanodeSslPort.getPort());
}
- String httpKeytab = conf.get(DFSUtil.getSpnegoKeytabKey(conf,
- DFSConfigKeys.DFS_NAMENODE_KEYTAB_FILE_KEY));
- initWebHdfs(conf, bindAddress.getHostName(), httpKeytab, httpServer,
+
+ initWebHdfs(conf, httpServer,
NamenodeWebHdfsMethods.class.getPackage().getName());
Review Comment:
this even doesn't look properly formatted
> Remove unused parameters at NameNodeHttpServer#initWebHdfs
> ----------------------------------------------------------
>
> Key: HDFS-16995
> URL: https://issues.apache.org/jira/browse/HDFS-16995
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Zhaohui Wang
> Assignee: Zhaohui Wang
> Priority: Minor
> Labels: pull-request-available
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]