Hi Robert,
I can see the timestamp when the process starts but it seems doesn't stop
executing.
I have:
DataStream<Double> dataStream = env
.readTextStream(filePath)
.flatMap(new Splitter());
WindowedDataStream<Double> dataWindow =
dataStream.window(Time.of(5, TimeUnit.SECONDS)).every(Time.of(5,
TimeUnit.SECONDS));
DataStream<Double> res = dataWindow.reduceGroup(new Reducer());
env.execute("Flink Processor");
Thank you,
Giacomo
On Sat, Mar 21, 2015 at 1:19 PM, Robert Metzger <[email protected]> wrote:
> Hi,
>
> The execute() method returns an execution result object that also contains
> the runtime of the job.
>
>
>
> Sent from my iPhone
>
> > On 21.03.2015, at 11:09, Giacomo Licari <[email protected]>
> wrote:
> >
> > Hi guys,
> > I'm trying to execute a benchmark reading a 1GB file and applying a
> reduce function.
> >
> > I'd like to get the overall execution time.
> >
> > I put that code before applying the reduce function:
> > long startTime = System.currentTimeMillis();
> >
> > and after env.execute("Flink Processor"); I put the code to print out
> the overall time, but it doen't work.
> >
> > Did you try something about?
> >
> > Thanks a lot,
> > Giacomo
>