IllegalArgumentException: The configured managed memory fraction for Python worker process must be within (0, 1], was: %s

2021-07-27 Thread Curt Buechter
I have a pyflink job that starts using the Datastream api and converts to the Table API. In the datastream portion, there is a MapFunction. I am getting the following error: flink run -py sample.py java.lang.IllegalArgumentException: The configured managed memory fraction for Python worker proces

[External] naming table stages

2021-07-27 Thread Clemens Valiente
Is it possible to rename execution stages from the Table API? Right now the entire select transformation appears in plaintext in the task name so the log entries from ExecutionGraph are over 10,000 characters long and the log files are incredibly difficult to read. for example a simple selected fie

Re: [External] NullPointerException on accumulator after Checkpointing

2021-07-27 Thread Clemens Valiente
Hi Timo, thanks for the help here, wrapping the MapView in a case class indeed solved the problem. It was not immediately apparent from the documentation that using a MapView as top level accumulator would cause an issue. it seemed a straightforward intuitive way to use it :) Cheers Clemens On We

Re: Need help when using kubernetes.jobmanager.annotations

2021-07-27 Thread Yang Wang
Could you please ensure that you are using the native Kubernetes mode[1]? For standalone on K8s[2], you need to manually set the annotation in the jobmanager yaml file. [1]. https://ci.apache.org/projects/flink/flink-docs-master/docs/deployment/resource-providers/native_kubernetes/ [2]. https://c

Re: ImportError: No module named pyflink

2021-07-27 Thread Dian Fu
Hi, You need to make sure that PyFlink is available in the cluster nodes. There are a few ways to achieve this, e.g. - Install PyFlink on all the cluster nodes - Install PyFlink in a virtual environment and specify it via python archive [1] Regards, Dian [1] https://ci.apache.org/projects/flin

Re: as-variable configuration for state ac

2021-07-27 Thread Mason Chen
+ user mailing list I don't have permission to assign to you, but here is the JIRA ticket: https://issues.apache.org/jira/browse/FLINK-23519 Thanks! On Tue, Jul 27, 2021 at 4:40 AM Yun Tang wrote: > Hi Mason, > > I think this request is reasonable and you could create a JIRA ticket so > that w

Re: Unable to read state Witten by Beam application with Flink runner using Flink's State Processor API

2021-07-27 Thread David Morávek
This thread is duplicated on the dev mailing list [1]. [1] https://lists.apache.org/x/thread.html/r87fa8153137a4968f6a4f6b47c97c4d892664d864c51a79574821165@%3Cdev.flink.apache.org%3E Best, D. On Tue, Jul 27, 2021 at 5:38 PM Kathula, Sandeep wrote: > Hi, > > We have a simple Beam applicati

Unable to read state Witten by Beam application with Flink runner using Flink's State Processor API

2021-07-27 Thread Kathula, Sandeep
Hi, We have a simple Beam application like a work count running with Flink runner (Beam 2.26 and Flink 1.9). We are using Beam’s value state. I am trying to read the state from savepoint using Flink's State Processor API but getting a NullPointerException. Converted the whole code into Pur

Re: recover from svaepoint

2021-07-27 Thread Schwalbe Matthias
Hi Till, Having been unaware of this mail thread I've created a Jira Bug https://issues.apache.org/jira/browse/FLINK-23509 which proposes also a simple solution. Regards Matthias Diese Nachricht ist ausschliesslich für den Adressaten bestimmt und beinhaltet unter Umständen vertrauliche Mitte

Re: as-variable configuration for state ac

2021-07-27 Thread Yun Tang
Hi Mason, I think this request is reasonable and you could create a JIRA ticket so that we could resolve it later. Best, Yun Tang From: Mason Chen Sent: Tuesday, July 27, 2021 15:15 To: Yun Tang Cc: Mason Chen ; user@flink.apache.org Subject: Re: as-variable

Re: foreach exec sql

2021-07-27 Thread Caizhi Weng
Hi! Try this: sql.zipWithIndex.foreach { case (sql, idx) => val result = tableEnv.executeSql(sql) if (idx == 7) { result.print() } } igyu 于2021年7月27日周二 下午4:38写道: > tableEnv.executeSql(sql(0)) > tableEnv.executeSql(sql(1)) > tableEnv.executeSql(sql(2)) > tableEnv.ex

foreach exec sql

2021-07-27 Thread igyu
tableEnv.executeSql(sql(0)) tableEnv.executeSql(sql(1)) tableEnv.executeSql(sql(2)) tableEnv.executeSql(sql(3)) tableEnv.executeSql(sql(4)) tableEnv.executeSql(sql(5)) tableEnv.executeSql(sql(6)) tableEnv.executeSql(sql(7)).print() that is OK but I hope

Need help when using kubernetes.jobmanager.annotations

2021-07-27 Thread Manong Karl
Hi Team, I have set the "kubernetes.jobmanager.annotations". But I can't find these in the k8s deployment. As these can be found in the job manager pod. Is it by design or just be missed?

ImportError: No module named pyflink

2021-07-27 Thread Curt Buechter
This feels like the simplest error, but I'm struggling to get past it. I can run pyflink jobs locally just fine by submitting them either via `python sample.py` or `flink run --target local -py sample.py`. But, when I try to execute on a remote worker node, it always fails with this error: table_e

Re: as-variable configuration for state ac

2021-07-27 Thread Mason Chen
Yup, your understand is correct—that was the analogy I was trying to make! > On Jul 26, 2021, at 7:57 PM, Yun Tang wrote: > > Hi Mason, > > In rocksDB, one state is corresponding to a column family and we could > aggregate all RocksDB native metrics per column family. If my understanding > is