是否可以在 Zeppelin 段落中看到一些错误输出? [英] Is it possible to see some error output in Zeppelin paragraphs?

查看:43
本文介绍了是否可以在 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.

例如,我有这个代码:

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

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/code> 标签.

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 段落中看到一些错误输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆