Repository: zeppelin Updated Branches: refs/heads/branch-0.6 9a28d31f7 -> db7c11d3b
[ZEPPELIN-1365] Error of Zeppelin Application in development mode. ### What is this PR for? This PR fixes the bug of running application in development mode. ### What type of PR is it? Bug Fix ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1365 ### How should this be tested? 1. run zeppelin 2. run org.apache.zeppelin.interpreter.dev.ZeppelinApplicationDevServer in development mode. (http://zeppelin.apache.org/docs/0.7.0-SNAPSHOT/development/writingzeppelinapplication.html) 3. and run paragraph like screenshot. ### Screenshots (if appropriate) ![image](https://cloud.githubusercontent.com/assets/3348133/17935588/d95ec2de-6a56-11e6-84d9-19030984411d.png) ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: astroshim <hss...@nflabs.com> Closes #1358 from astroshim/ZEPPELIN-1365 and squashes the following commits: 9f640e5 [astroshim] add argument check. (cherry picked from commit c580a82ad54a5f165dffa2c590c1991375fffb75) Signed-off-by: Damien CORNEAU <cornead...@gmail.com> Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/db7c11d3 Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/db7c11d3 Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/db7c11d3 Branch: refs/heads/branch-0.6 Commit: db7c11d3b62a8066b0138fd9700731c953cec1a5 Parents: 9a28d31 Author: astroshim <hss...@nflabs.com> Authored: Wed Aug 24 23:52:45 2016 +0900 Committer: Damien CORNEAU <cornead...@gmail.com> Committed: Thu Sep 1 16:30:11 2016 +0900 ---------------------------------------------------------------------- .../zeppelin/interpreter/remote/RemoteInterpreterServer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/db7c11d3/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.java ---------------------------------------------------------------------- diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.java index 6b4edc4..8f49777 100644 --- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.java +++ b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.java @@ -32,6 +32,7 @@ import org.apache.thrift.transport.TTransportException; import org.apache.zeppelin.display.*; import org.apache.zeppelin.interpreter.*; import org.apache.zeppelin.interpreter.InterpreterResult.Code; +import org.apache.zeppelin.interpreter.dev.ZeppelinDevServer; import org.apache.zeppelin.interpreter.thrift.*; import org.apache.zeppelin.resource.*; import org.apache.zeppelin.scheduler.Job; @@ -124,7 +125,11 @@ public class RemoteInterpreterServer public static void main(String[] args) throws TTransportException, InterruptedException { - int port = Integer.parseInt(args[0]); + + int port = ZeppelinDevServer.DEFAULT_TEST_INTERPRETER_PORT; + if (args.length > 0) { + port = Integer.parseInt(args[0]); + } RemoteInterpreterServer remoteInterpreterServer = new RemoteInterpreterServer(port); remoteInterpreterServer.start(); remoteInterpreterServer.join();