You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Nikolaas Steenbergen (JIRA)" <ji...@apache.org> on 2015/10/15 16:56:05 UTC

[jira] [Commented] (FLINK-2522) Integrate Streaming Api into Flink-scala-shell

    [ https://issues.apache.org/jira/browse/FLINK-2522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14959016#comment-14959016 ] 

Nikolaas Steenbergen commented on FLINK-2522:
---------------------------------------------

I'm working on writing a test case for the scala shell streaming, where it should create a local Streaming environment (by itself).
However if I run this test it gives me:
{code}
org.apache.flink.api.common.InvalidProgramException: The RemoteEnvironment cannot be used when submitting a program through a client, or running in a TestEnvironment context.
at org.apache.flink.streaming.api.environment.RemoteStreamEnvironment.<init>(RemoteStreamEnvironment.java:132)
at org.apache.flink.streaming.api.environment.RemoteStreamEnvironment.<init>(RemoteStreamEnvironment.java:103)
at org.apache.flink.streaming.api.environment.RemoteStreamEnvironment.<init>(RemoteStreamEnvironment.java:80)
...
{code}

Am I forced to just skip the test for the local streaming scala shell ? 
Or is there a workaround for this ? 

> Integrate Streaming Api into Flink-scala-shell
> ----------------------------------------------
>
>                 Key: FLINK-2522
>                 URL: https://issues.apache.org/jira/browse/FLINK-2522
>             Project: Flink
>          Issue Type: Improvement
>          Components: Scala Shell
>            Reporter: Nikolaas Steenbergen
>            Assignee: Nikolaas Steenbergen
>
> startup scala shell with "-s" or "-streaming" flag to use the streaming api



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)