Re: Facing error while running Hands-in training example “writing to Apache Kafka”

2016-05-31 Thread arpit srivastava
Flink uses kryo serialization which doesn't support joda time object serialization. Use java.util.date or you have to change kryo. Thanks, Arpit On Tue, May 31, 2016 at 11:18 PM, ahmad Sa P wrote: > Hi > I have a problem at running a sample code from the hands-in examples of > Apache Flink, >

Re: yarn kill container due to running beyond physical memory limits [ How can i debug memory issue ]

2016-05-31 Thread Alexis Gendronneau
Hello, How many memory your yarn containers are configured to have ? This error may be due to running a flink on yarn cluster with more memory than you have in containers. Could you check it, and maybe set containers memory to a more suitable value ? regards 2016-06-01 1:22 GMT+02:00 prateekaror

yarn kill container due to running beyond physical memory limits [ How can i debug memory issue ]

2016-05-31 Thread prateekarora
Hi I am running flink 1.0.2 with Yarn . After running application for some time , Yarn kill my container due to running beyond physical memory limits . how can i debug memory issue ? below are the logs : Container container_1463184272818_0165_01_12 is completed with diagnostics: Container

Re: Flink's WordCount at scale of 1BLN of unique words

2016-05-31 Thread Xtra Coder
Thanks, things are clear so far.

Re: Alter Flink's execution graph at run-time

2016-05-31 Thread Xtra Coder
Thanks, altering via pause/update/resume is OK, at least for now. Will try it on practice. Just in case - question was inspired by Apache NiFi. If you haven't seen this https://www.youtube.com/watch?v=sQCgtCoZyFQ - at 29:10. I would say such thing is a must have feature in "production" where stopp

Re: Executing detached data stream programs

2016-05-31 Thread Robert Metzger
Hi Jordan, the community is definitively open to discuss this further (in particular if users start asking for the feature) Here is the related JIRA issue: https://issues.apache.org/jira/browse/FLINK-2313 On Tue, May 31, 2016 at 5:19 PM, jganoff wrote: > Hi Robert, > > Thanks for the suggestion

Facing error while running Hands-in training example “writing to Apache Kafka”

2016-05-31 Thread ahmad Sa P
Hi I have a problem at running a sample code from the hands-in examples of Apache Flink, I used the following code to send output of a stream to already running Apache Kafka, and get the below error. Could anyone tell me what is going wrong? Best regards Ahmad public class RideCleansing { p

Re: Executing detached data stream programs

2016-05-31 Thread jganoff
Hi Robert, Thanks for the suggestion. Threading out a blocking RemoteStreamEnvironment.execute() call and polling the monitoring REST API will work for now. Once the job transitions to running I will kill the thread and monitor the job through the REST API. As for metrics, accumulators, and other

Re: Maintaining watermarks per key, instead of per operator instance

2016-05-31 Thread leon_mclare
Hi Aljoscha, thanks for the speedy reply. I am processing measurements delivered by smart meters. I use windows to gather measurements and calculate values such as average consumption. The key is simply the meter ID. The challenge is that meters may undergo network partitioning, under which t

Re: Maintaining watermarks per key, instead of per operator instance

2016-05-31 Thread Aljoscha Krettek
Hi, I'm afraid this is impossible with the current design of Flink. Might I ask what you want to achieve with this? Maybe we can come up with a solution. -Aljoscha On Tue, 31 May 2016 at 13:24 wrote: > My use case primarily concerns applying transformations per key, with the > keys remaining fi

Maintaining watermarks per key, instead of per operator instance

2016-05-31 Thread leon_mclare
My use case primarily concerns applying transformations per key, with the keys remaining fixed throughout the topology. I am using event time for my windows. The problem i am currently facing is that watermarks in windows propagate per operator instance, meaning the operator event time increase

Type of TypeVariable 'OT' in 'class org.apache.flink.api.common.io.RichInputFormat' could not be determined.

2016-05-31 Thread Robertson Williams
I test streaming to read data through JDBCInputFormat with code snippet as below (scala 2.11, flink 1.0) val input = JDBCInputFormat.buildJDBCInputFormat. setDrivername(driver). setDBUrl(url). setQuery(sql). setUsernam

Re: Alter Flink's execution graph at run-time

2016-05-31 Thread Ufuk Celebi
Hey, currently this is not possible. You can use savepoints (https://ci.apache.org/projects/flink/flink-docs-release-1.0/apis/streaming/savepoints.html) to stop the job and then resume with the altered job version. There are plans to allow dynamic rescaling of the execution graph, but I think they

Re: Elegantly sharing state in a streaming environment

2016-05-31 Thread Ufuk Celebi
Aljoscha is working to properly expose this in Flink. The design document is here: https://docs.google.com/document/d/1hIgxi2Zchww_5fWUHLoYiXwSBXjv-M5eOv-MKQYN3m4/edit#heading=h.pqg5z6g0mjm7 On Mon, May 30, 2016 at 2:31 PM, Philippe CAPARROY wrote: > > Just transform the list in a DataStream. A d

Re: Different log4j.properies

2016-05-31 Thread Ufuk Celebi
Added a note to the logging section of the docs. Website should be updated with the nightly build. On Mon, May 30, 2016 at 7:56 PM, Stephan Ewen wrote: > I think "log4j.properties" is also used for YARN (it is included in the > shipped bundle, together with jars). > > Otherwise it is correct. > >

Re: Unsatisfied Link Error

2016-05-31 Thread Debaditya Roy
Hello, Yes I ran it from the cli successfully. :-) Regards On Tue, May 31, 2016 at 11:03 AM, Stephan Ewen wrote: > Hi! > > Concerning the "the program aborted pre-maturely" exception - I assume you > were using the web dashboard to submit the program. > There is a trick that we use to fetch th

Re: Unsatisfied Link Error

2016-05-31 Thread Stephan Ewen
Hi! Concerning the "the program aborted pre-maturely" exception - I assume you were using the web dashboard to submit the program. There is a trick that we use to fetch the plan without executing the program, but it can be voided by catching certain exceptions. I would try to simply execute the p

Re: Unsatisfied Link Error

2016-05-31 Thread Debaditya Roy
Actually I have worked on IntelliJ only. As you said I also suspect the fat jar (created from intelliJ) is unable to have the link to the native library when I generate it and also the maven plugin is present in the pom.xml . I also used another fat jar creator application to create the fat jar and