swamirishi commented on code in PR #4315:
URL: https://github.com/apache/ozone/pull/4315#discussion_r1128826061


##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/HddsServerUtil.java:
##########
@@ -583,4 +584,29 @@ public static IOException toIOException(String msg, 
RocksDBException e) {
   public static void addSuppressedLoggingExceptions(RPC.Server server) {
     server.addSuppressedLoggingExceptions(ServerNotLeaderException.class);
   }
+
+  /**
+   * Build javaProcessBuilder.
+   * @param jvmArgs
+   * @param classpath
+   * @param className
+   * @param args
+   * @return ProcessBuilder
+   */
+  public static ProcessBuilder getJavaProcess(List<String> jvmArgs,
+                                           String classpath,
+                                           String className,
+                                           List<String> args) {
+    String javaHome = System.getProperty("java.home");
+    String javaBin = String.format("%1$s%2$sbin%2$sjava",
+            javaHome, File.separator);

Review Comment:
   Removed function not needed



-- 
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