You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "Till Rohrmann (JIRA)" <ji...@apache.org> on 2015/09/07 15:03:45 UTC
[jira] [Created] (ZEPPELIN-287) FlinkInterpreter does not properly
captures standard output
Till Rohrmann created ZEPPELIN-287:
--------------------------------------
Summary: FlinkInterpreter does not properly captures standard output
Key: ZEPPELIN-287
URL: https://issues.apache.org/jira/browse/ZEPPELIN-287
Project: Zeppelin
Issue Type: Bug
Reporter: Till Rohrmann
Priority: Minor
The {{FlinkInterpreter}} does not properly captures the standard output when using {{System.out.println}}. The reason is that Zeppelin only sets the redirection for the {{Console}} which is used by Scala's {{Predef}} imports of {{print}} and {{println}}. However, some of Flink's code is written in Java and, thus, uses {{System.out}} for standard output. This output won't be captured.
The problem can be observed by executing the following code
{code}
val input = env.fromElements("a", "b", "c")
input.print()
{code}
This code should output "a\nb\nc" or another permutation of a,b and c. However, nothing is printed. The current way for solving the problem is to manually collect the {{DataSet}} and to print it with {{Console.println}}. E.g.
{code}
val input = env.fromElements("a", "b", "c")
input.collect().foreach{println}
{code}
I propose to change the behaviour of Zeppelin's Flink interpreter to properly capture all standard output to avoid these workarounds.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)