是否有可能在 Zeppelin 段落中看到一些错误输出?

Is it possible to see some error output in Zeppelin paragraphs?

我安装了 Zeppelin 并正在使用 Spark 解释器。但是,如果我有语法错误或运行时错误,除了 "Error" 字之外,我找不到任何详细信息。

比如我有这个代码:

而且我只看到右上角的"ERROR"字样。

在我自己的电脑上,scala 会打印如下内容:

$ scala example.sc
./example.sc:1: error: recursive value a needs type
val a = this is an error
             ^
.example.sc:1: error: not found: value an
val a = this is an error
                ^
two errors found

我使用的是 0.7.3 版本。

您需要在 Interpreter 选项卡中将 zeppelin.spark.printREPLOutput 设置为 true

它的缺点是它将显示 REPL 显示的所有内容。