prefix zeppelin. to property zeppelin.livy.sql.maxResult

This commit is contained in:
Prabhjyot Singh 2016-04-29 02:51:38 +05:30
parent 9be64e09e8
commit a6e7d0b47e

View file

@ -42,7 +42,7 @@ public class LivySparkSQLInterpreter extends Interpreter {
"livy",
LivySparkSQLInterpreter.class.getName(),
new InterpreterPropertyBuilder()
.add("livy.spark.maxResult",
.add("zeppelin.livy.spark.maxResult",
DEFAULT_MAX_RESULT,
"Max number of SparkSQL result to display.")
.build()
@ -92,7 +92,7 @@ public class LivySparkSQLInterpreter extends Interpreter {
line.replaceAll("\"", "\\\\\"")
.replaceAll("\\n", " ")
+ "\").show(" +
property.get("livy.spark.maxResult") + ")",
property.get("zeppelin.livy.spark.maxResult") + ")",
interpreterContext, userSessionMap);
if (res.code() == InterpreterResult.Code.SUCCESS) {