kerneltime commented on code in PR #4455:
URL: https://github.com/apache/ozone/pull/4455#discussion_r1145698632


##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/Gateway.java:
##########
@@ -70,6 +75,17 @@ public Void call() throws Exception {
     OzoneConfigurationHolder.setConfiguration(ozoneConfiguration);
     UserGroupInformation.setConfiguration(ozoneConfiguration);
     loginS3GUser(ozoneConfiguration);
+
+    if (StringUtils.isEmpty(ozoneConfiguration.get(
+            OzoneConfigKeys.OZONE_METADATA_DIRS))) {
+      //Setting ozone.metadata.dirs if not set so that server setup doesn't
+      // fail.
+      Path tmpMetaDir = Files.createTempDirectory("ozone_s3g_tmpdir");

Review Comment:
   Can this be set relative to the current working directory instead of `/tmp` 
which it would default to on most systems?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to