Jeff Zhang created ZEPPELIN-1529:
------------------------------------
Summary: Confusing Error Message for livy interpreter
Key: ZEPPELIN-1529
URL: https://issues.apache.org/jira/browse/ZEPPELIN-1529
Project: Zeppelin
Issue Type: Bug
Affects Versions: 0.6.1
Reporter: Jeff Zhang
The following code in livy interpreter will get very confusing error message.
{code}
sc.parallelize(1 to 10).
{code}
{noformat}
<console>:29: error: value print is not a member of
org.apache.spark.rdd.RDD[Int]
possible cause: maybe a semicolon is missing before `value print'?
print("")
^
{noformat}
The cause is that we add print statement at the end of statement, not sure why
we do that.
{code}
String[] lines = stringLines.split("\n");
String[] linesToRun = new String[lines.length + 1];
for (int i = 0; i < lines.length; i++) {
linesToRun[i] = lines[i];
}
linesToRun[lines.length] = "print(\"\")";
{code}
\cc [~prabhjot]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)