You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by mo...@apache.org on 2015/11/08 01:32:20 UTC

incubator-zeppelin git commit: added hint to errror message

Repository: incubator-zeppelin
Updated Branches:
  refs/heads/master ae08e713e -> cd0010d69


added hint to errror message

%dep interpreter gives meaningless(for newbies) error message if it is not executed as the first snippet. Whit this hint it should be clear what to do to get rid of the problem

Author: Tomas <xh...@gmail.com>

Closes #383 from xhudik/patch-4 and squashes the following commits:

8ce0f8f [Tomas] paragraph instead of cell
aa16656 [Tomas] added Interpreter restart option
674cb66 [Tomas] cell instead of snippet
9c3af9f [Tomas] formatting
c8c5649 [Tomas] added hint to errror message


Project: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/commit/cd0010d6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/tree/cd0010d6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/diff/cd0010d6

Branch: refs/heads/master
Commit: cd0010d69be4e58ca5c92d984e61729ebde63174
Parents: ae08e71
Author: Tomas <xh...@gmail.com>
Authored: Thu Nov 5 12:56:32 2015 +0100
Committer: Lee moon soo <mo...@apache.org>
Committed: Sun Nov 8 09:32:29 2015 +0900

----------------------------------------------------------------------
 .../src/main/java/org/apache/zeppelin/spark/DepInterpreter.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/blob/cd0010d6/spark/src/main/java/org/apache/zeppelin/spark/DepInterpreter.java
----------------------------------------------------------------------
diff --git a/spark/src/main/java/org/apache/zeppelin/spark/DepInterpreter.java b/spark/src/main/java/org/apache/zeppelin/spark/DepInterpreter.java
index c4614bf..67eadad 100644
--- a/spark/src/main/java/org/apache/zeppelin/spark/DepInterpreter.java
+++ b/spark/src/main/java/org/apache/zeppelin/spark/DepInterpreter.java
@@ -183,7 +183,9 @@ public class DepInterpreter extends Interpreter {
 
     if (sparkInterpreter != null && sparkInterpreter.isSparkContextInitialized()) {
       return new InterpreterResult(Code.ERROR,
-          "Must be used before SparkInterpreter (%spark) initialized");
+          "Must be used before SparkInterpreter (%spark) initialized\n" +
+          "Hint: put this paragraph before any Spark code and " +
+          "restart Zeppelin/Interpreter" );
     }
 
     scala.tools.nsc.interpreter.Results.Result ret = intp.interpret(st);