Re: Print on screen DataStream content

2020-11-24 Thread Simone Cavallarin
ok, thanks you all for the help! s From: David Anderson Sent: 24 November 2020 15:16 To: Simone Cavallarin Cc: user@flink.apache.org Subject: Re: Print on screen DataStream content Simone, What you want to do is to override the toString() method on Event so

Re: Print on screen DataStream content

2020-11-24 Thread David Anderson
1 > > Apologies, but I really don't understand if I write `DataStream#print()` I > just receive an error... i'm missing something here.. > On the example there are System.out.println(). > > Thanks > ---------- > *From:* Timo Walther > *Sent:* 24 No

Re: Print on screen DataStream content

2020-11-24 Thread Simone Cavallarin
2550-4e16-b381-554f86d3812f] Thanks From: Timo Walther Sent: 24 November 2020 11:50 To: user@flink.apache.org Subject: Re: Print on screen DataStream content Hi Simone, if you are just executing DataStream pipelines locally in your IDE while prototyping. You should be able to use `DataS

Re: Print on screen DataStream content

2020-11-24 Thread Timo Walther
. Thanks *From:* David Anderson *Sent:* 24 November 2020 10:01 *To:* Pankaj Chand *Cc:* Austin Cawley-Edwards ; Simone Cavallarin ; user@flink.apache.org *Subject:* Re: Print on screen DataStream content When Flink is running on a cluster, `DataStream#print()` prints to files in the log

Re: Print on screen DataStream content

2020-11-24 Thread Simone Cavallarin
0 10:01 To: Pankaj Chand Cc: Austin Cawley-Edwards ; Simone Cavallarin ; user@flink.apache.org Subject: Re: Print on screen DataStream content When Flink is running on a cluster, `DataStream#print()` prints to files in the log directory. Regards, David On Tue, Nov 24, 2020 at 6:03 AM Pa

Re: Print on screen DataStream content

2020-11-24 Thread David Anderson
When Flink is running on a cluster, `DataStream#print()` prints to files in the log directory. Regards, David On Tue, Nov 24, 2020 at 6:03 AM Pankaj Chand wrote: > Please correct me if I am wrong. `DataStream#print()` only prints to the > screen when running from the IDE, but does not work (pri

Re: Print on screen DataStream content

2020-11-23 Thread Pankaj Chand
Please correct me if I am wrong. `DataStream#print()` only prints to the screen when running from the IDE, but does not work (print to the screen) when running on a cluster (even a local cluster). Thanks, Pankaj On Mon, Nov 23, 2020 at 5:31 PM Austin Cawley-Edwards < austin.caw...@gmail.com> wro

Re: Print on screen DataStream content

2020-11-23 Thread Austin Cawley-Edwards
Hey Simone, I'd suggest trying out the `DataStream#print()` function to start, but there are a few other easy-to-integrate sinks for testing that you can check out in the docs here[1] Best, Austin [1]: https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/datastream_api.html#data-sink

Print on screen DataStream content

2020-11-23 Thread Simone Cavallarin
Hi All, On my code I have a DataStream that I would like to access. I need to understand what I'm getting for each transformation to check if the data that I'm working on make sense. How can I print into the console or get a file (csv, txt) for the variables: "stream", "enriched" and "result"?