本文介绍了Zeppelin段落中可能会看到一些错误输出吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Zeppelin安装程序,并且正在使用Spark解释器.但是,如果遇到语法错误或运行时错误,除错误"一词外,我找不到其他详细信息.
I have a Zeppelin installation and am using the Spark interpreter. However, if I have a syntax or runtime error, I cannot find any details except the "Error" word.
例如,我有以下代码:
我只在右上角看到错误"字样.
And I only see the "ERROR" word in the top-right corner.
在我自己的计算机上,scala会打印以下内容:
In my own computer, scala would instead print something like:
$ 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.
I'm using version 0.7.3.
推荐答案
您需要在Interpreter
选项卡中将zeppelin.spark.printREPLOutput
设置为true
.
You will need to set zeppelin.spark.printREPLOutput
to true
in the Interpreter
tab.
其缺点是它将显示REPL显示的所有内容.
The downfall of this is that it will show everything that REPL shows.
这篇关于Zeppelin段落中可能会看到一些错误输出吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!