on Wikipedia Edit Stream example

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

on Wikipedia Edit Stream example

Liu Haibin
Hi,

I'm wondering why we don't need to run ./bin/start-local.sh for "Wikipedia Edit Stream" example but we need to do it for "Quickstart" example.

I found that I can access http://localhost:8081 for "Quickstart" example but not for "Wikipedia Edit Stream".

Where is "Wikipedia Edit Stream" running? Can I have http://localhost:8081 for "Wikipedia Edit Stream"?


Regards,
Haibin
Reply | Threaded
Open this post in threaded view
|

Re: on Wikipedia Edit Stream example

Nico Kruber
Hi Haibin,
if you execute the program as in the Wiki edit example [1] from mvn as given
or from the IDE, a local Flink environment will be set up which is not
accessible form the outside by default. This is done by the call to
StreamExecutionEnvironment.getExecutionEnvironment();
which also works in remote environments, i.e. if the jar is uploaded to a
running Flink cluster and executed there.

You can also do that if you like to, i.e. "mvn package" the wiki example and
let Flink run the code as in [2].


Nico

[1] https://ci.apache.org/projects/flink/flink-docs-release-1.3/quickstart/
run_example_quickstart.html
[2] https://ci.apache.org/projects/flink/flink-docs-release-1.3/quickstart/
setup_quickstart.html

On Thursday, 21 September 2017 12:02:34 CEST Liu Haibin wrote:

> Hi,
>
> I'm wondering why we don't need to run ./bin/start-local.sh for "Wikipedia
> Edit Stream" example but we need to do it for "Quickstart" example.
>
> I found that I can access http://localhost:8081 for "Quickstart" example
> but not for "Wikipedia Edit Stream".
>
> Where is "Wikipedia Edit Stream" running? Can I have http://localhost:8081
> for "Wikipedia Edit Stream"?
>
>
> Regards,
> Haibin


signature.asc (201 bytes) Download Attachment