You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "maobaolong (JIRA)" <ji...@apache.org> on 2018/02/26 09:17:00 UTC
[jira] [Created] (HDFS-13195) DataNode conf page cannot display
the current value after reconfig
maobaolong created HDFS-13195:
---------------------------------
Summary: DataNode conf page cannot display the current value after reconfig
Key: HDFS-13195
URL: https://issues.apache.org/jira/browse/HDFS-13195
Project: Hadoop HDFS
Issue Type: Bug
Components: datanode
Affects Versions: 2.7.1
Reporter: maobaolong
Now the branch-2.7 support dfs.datanode.data.dir reconfig, but after i reconfig this key, the conf page's value is still the old config value.
The reason is that:
{code:java}
public DatanodeHttpServer(final Configuration conf,
final DataNode datanode,
final ServerSocketChannel externalHttpChannel)
throws IOException {
this.conf = conf;
Configuration confForInfoServer = new Configuration(conf);
confForInfoServer.setInt(HttpServer2.HTTP_MAX_THREADS, 10);
HttpServer2.Builder builder = new HttpServer2.Builder()
.setName("datanode")
.setConf(confForInfoServer)
.setACL(new AccessControlList(conf.get(DFS_ADMIN, " ")))
.hostName(getHostnameForSpnegoPrincipal(confForInfoServer))
.addEndpoint(URI.create("http://localhost:0"))
.setFindPort(true);
this.infoServer = builder.build();
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org