Details
Description
In DatanodeHttpServer.java Netty is used as reverse proxy. But uses random port to start with binding to localhost. This port can be made configurable for better deployments.
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);
Attachments
Attachments
Issue Links
- is duplicated by
-
HDFS-9495 Data node opens random port for HTTPServer, not configurable
- Resolved