You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "devmadhuu (via GitHub)" <gi...@apache.org> on 2023/02/24 13:34:14 UTC

[GitHub] [ozone] devmadhuu commented on a diff in pull request #4308: HDDS-6176. Ozone service WebUI is not accessible with 404 error.

devmadhuu commented on code in PR #4308:
URL: https://github.com/apache/ozone/pull/4308#discussion_r1117009920


##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/BaseHttpServer.java:
##########
@@ -178,11 +178,13 @@ public BaseHttpServer(MutableConfigurationSource conf, String name)
       }
 
       String baseDir = conf.get(OzoneConfigKeys.OZONE_HTTP_BASEDIR);
-      if (!StringUtils.isEmpty(baseDir)) {
-        createDir(baseDir);
-        httpServer.getWebAppContext().setAttribute(JETTY_BASETMPDIR, baseDir);
-        LOG.info("HTTP server of {} uses base directory {}", name, baseDir);
+
+      if (StringUtils.isEmpty(baseDir)) {
+        baseDir = conf.get(OzoneConfigKeys.OZONE_METADATA_DIRS) + "/webserver";

Review Comment:
   @ArafatKhan2198 , Instead of relying on "ozone.metadata.dirs" config, we can have separate config for httpserver.



##########
hadoop-hdds/common/src/main/resources/ozone-default.xml:
##########
@@ -2935,7 +2935,7 @@
     <description>
       The base dir for HTTP Jetty server to extract contents. If this property
       is not configured, by default, Jetty will create a directory inside the
-      directory named by the java.io.tmpdir System property(/tmp by default).
+      directory named by the ozone.metadata.dirs(/tmp/metadata)

Review Comment:
   @ArafatKhan2198 , thanks for working on this patch, however it seems not correct as /tmp is anyway being cleaned up, I think this description is incorrect because "ozone.metadata.dirs" will vary for each component like SCM, Datanode, OM, Recon etc for their respective node and it will not be /tmp as HttpServer also will be started as separate process on each of the Ozone component.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org