RE: Session windows - Evaluation of addition of element + window expires/gets discarded after some set time of inactivity

2016-10-21 Thread Anchit Jatana
Hi Bart, Thank you so much for sharing the approach. Looks like this solved my problem. Here's what I have as an implementation for my use-case: package org.apache.flink.quickstart import org.apache.flink.api.common.state.{ ReducingState, ReducingStateDescriptor, ValueState,

Re: multiple processing of streams

2016-10-21 Thread Fabian Hueske
Hi Robert, it is certainly possible to feed the same DataStream into two (or more) operators. Both operators should then process the complete input stream. What you describe is an unintended behavior. Can you explain how you figure out that both window operators only receive half of the events?

FlinkKafkaConsumerBase - Received confirmation for unknown checkpoint

2016-10-21 Thread PedroMrChaves
Hello, Am getting the following warning upon executing a checkpoint /2016-10-21 16:31:54,229 INFO org.apache.flink.runtime.checkpoint.CheckpointCoordinator - Triggering checkpoint 5 @ 1477063914229 2016-10-21 16:31:54,233 INFO org.apache.flink.runtime.checkpoint.CheckpointCoordinator

Re: ValueState in RichCoFlatMap, possible 1.2-SNAPSHOT regression

2016-10-21 Thread Stefan Richter
Hi, the problem is this line > object FlatMapper extends RichCoFlatMapFunction[Long, String, (Long, String)] > { which should use „class" instead of „object". Otherwise, one singleton instance of the FlatMapper is used by Flink across multiple operator instances, which leads to the whole

Unit testing a Kafka stream based application?

2016-10-21 Thread Niels Basjes
Hi, In addition to having unit tests for the individual components (map, flatmap, reduce, etc) of my application I would like to write unit tests for the entire flow of my Flink application. My application reads from Kafka, does various processing and writes out put to both kafka and files.

Re: NoClassDefFoundError on cluster with httpclient 4.5.2

2016-10-21 Thread Yassine MARZOUGUI
Hi Till, The httpclient jar is included in the job jar. Looking at a similar issue FLINK-4587 , It turns out the problem is with maven shade plugin, since I'm building Flink from sources with maven 3.3.x. I was able to solve the problem by

Re: Flink error: Too few memory segments provided

2016-10-21 Thread otherwise777
thank you so much, it worked immediately. -- View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flink-error-Too-few-memory-segments-provided-tp9657p9669.html Sent from the Apache Flink User Mailing List archive. mailing list archive at

Re: Flink error: Too few memory segments provided

2016-10-21 Thread Vasiliki Kalavri
Hi, On 21 October 2016 at 11:17, otherwise777 wrote: > I tried increasing the taskmanager.network.numberOfBuffers to 4k and > later to > 8k, i'm not sure if my configuration file is even read, it's stored inside > my IDE as follows: http://prntscr.com/cx0vrx

Re: Flink error: Too few memory segments provided

2016-10-21 Thread otherwise777
I tried increasing the taskmanager.network.numberOfBuffers to 4k and later to 8k, i'm not sure if my configuration file is even read, it's stored inside my IDE as follows: http://prntscr.com/cx0vrx i build the flink program from the IDE and run it. I created several