[ 
https://issues.apache.org/jira/browse/KYLIN-3323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16422034#comment-16422034
 ] 

ASF GitHub Bot commented on KYLIN-3323:
---------------------------------------

zhaoyongjie closed pull request #125: KYLIN-3323 allow debugTomcat add more 
arguments
URL: https://github.com/apache/kylin/pull/125
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/server/src/main/java/org/apache/kylin/rest/DebugTomcat.java 
b/server/src/main/java/org/apache/kylin/rest/DebugTomcat.java
index db285952f4..3e749eca08 100644
--- a/server/src/main/java/org/apache/kylin/rest/DebugTomcat.java
+++ b/server/src/main/java/org/apache/kylin/rest/DebugTomcat.java
@@ -105,7 +105,14 @@ public static void main(String[] args) throws Exception {
 
         int port = 7070;
         if (args.length >= 1) {
-            port = Integer.parseInt(args[0]);
+            for (String arg : args) {
+                String[] kwarg = arg.split("=");
+                if (kwarg[0].equals("port")) {
+                    port = Integer.parseInt(kwarg[1]);
+                    continue;
+                }
+                System.setProperty(kwarg[0], kwarg[1]);
+            }
         }
 
         File webBase = new File("../webapp/app");


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Allow debugTomcat add more arguments
> ------------------------------------
>
>                 Key: KYLIN-3323
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3323
>             Project: Kylin
>          Issue Type: Improvement
>            Reporter: yongjie zhao
>            Assignee: yongjie zhao
>            Priority: Minor
>         Attachments: Screen Shot 2018-03-28 at 3.05.00 PM.png
>
>
> On current, debugTomcat only accepts port argument. I must edit 
> kylin.property for execute remote command, such as 
> kylin.job.use-remote-cli=true.  This issue can be passed arguments for 
> debugTomcat



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to