You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/02/03 06:36:50 UTC

[GitHub] [incubator-doris] morningman commented on a change in pull request #2826: [UnitTest] Support starting mocked FE and BE process in unit test

morningman commented on a change in pull request #2826: [UnitTest] Support starting mocked FE and BE process in unit test
URL: https://github.com/apache/incubator-doris/pull/2826#discussion_r373940106
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/PaloFe.java
 ##########
 @@ -51,25 +51,36 @@
 public class PaloFe {
     private static final Logger LOG = LogManager.getLogger(PaloFe.class);
 
-    // entrance for palo frontend
+    public static final String DORIS_HOME_DIR = System.getenv("DORIS_HOME");
+    public static final String PID_DIR = System.getenv("PID_DIR");
+
     public static void main(String[] args) {
+        start(DORIS_HOME_DIR, PID_DIR, args);
+    }
+
+    // entrance for doris frontend
+    public static void start(String dorisHomeDir, String pidDir, String[] args) {
+        if (Strings.isNullOrEmpty(dorisHomeDir)) {
+            System.out.println("env DORIS_HOME is not set");
 
 Review comment:
   OK

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org