Compressing Avro entities in State

2021-08-09 Thread Sandeep khanzode
Hello, I am using the Maven Avro plugin to create SpecificRecord classes for a bunch of entities specified in .avsc files. I use the generated Java classes directly in a few MapStates. My state is now growing very large. I wanted to know whether there is any config or code to specify Snappy

Re: Bloom Filter - RocksDB - LinkageError Classloading

2021-08-09 Thread Sandeep khanzode
> > I'm afraid that it's because the configuration of your maven plugins like > maven-assembly or maven-shaded to include the classes. > > Best > Yun Tang > From: Sandeep khanzode > Sent: Saturday, August 7, 2021 10:20 > To: Yun Tang > Cc: Stephan Ewen ; user

Re: Bloom Filter - RocksDB - LinkageError Classloading

2021-08-05 Thread Sandeep khanzode
ses within the application > jar package, and it might cause problems if the client has different flink > version with servers. > > > Best, > Yun Tang > From: Stephan Ewen mailto:se...@apache.org>> > Sent: Wednesday, August 4, 2021 19:10 > To: Yun Tang mailto:myas...@live

Bloom Filter - RocksDB - LinkageError Classloading

2021-08-03 Thread Sandeep khanzode
Hello, I tried to add the bloom filter functionality as mentioned here: https://ci.apache.org/projects/flink/flink-docs-release-1.11/api/java/org/apache/flink/contrib/streaming/state/RocksDBOptionsFactory.html

Queryable State Lookup Failure

2021-07-23 Thread Sandeep khanzode
Hello, With the default memory settings, after about 5000 records in my KafkaFlinkConsumer, and some operators in my pipeline, I get the below error: Caused by: java.lang.OutOfMemoryError: Direct buffer memory at java.nio.Bits.reserveMemory(Unknown Source) ~[?:?] at

Re: Flink State Processor API Example - Java

2021-07-02 Thread Sandeep khanzode
orted-data-types-for-schema-evolution> > > Best, > Guowei > > > On Fri, Jun 25, 2021 at 3:04 AM Sandeep khanzode <mailto:sand...@shiftright.ai>> wrote: > Hello, > > 1.] Can someone please share a working example of how to read > ValueState and MapSt

Flink State Processor API Example - Java

2021-06-24 Thread Sandeep khanzode
Hello, 1.] Can someone please share a working example of how to read ValueState and MapState from a checkpoint and update it? I tried to assemble a working Java example but there are bit and pieces of info around. 2.] I am using Avro 1.7.7 with Flink for state entities since versions belong

Re: [Avro] TypeSerializer Example

2021-05-10 Thread Sandeep khanzode
Hello, Can someone please assist for this query? Thanks! Thanks, Sandeep > On 06-May-2021, at 10:30 AM, Sandeep khanzode wrote: > > Hi, > > Is there a working example somewhere that I can refer for writing Avro > entities in Flink state as well as Avro serializaition i

[Avro] Re: TypeSerializer Example

2021-05-05 Thread Sandeep khanzode
html > > https://flink.apache.org/news/2020/04/15/flink-serialization-tuning-vol-1.html#avro > > I hope this helps. > > Regards, > Timo > > > On 30.04.21 13:20, Sandeep khanzode wrote: >> Hi Timo, >> Thanks! I will take a look at the links. >> Can you p

Re: TypeSerializer Example

2021-04-30 Thread Sandeep khanzode
/runtime/PojoSerializer.java#L599 > > For the POJO logic. > > By the way, usually we recommend Avro for state data structures if schema > evolution is a topic. > > Regards, > Timo > > > > On 29.04.21 18:10, Sandeep khanzode wrote: >> Hello, >

TypeSerializer Example

2021-04-29 Thread Sandeep khanzode
Hello, Is there a working example of a TypeSerializer for a Java type stored in the State? My requirement is that I should be able to store the Java POJO entity in the MapState. The state is backed by RocksDBBackend. If I update the entity with a new member variable, I am unable to

Queryable State unavailable after Kubernetes HA State cleanup

2021-04-28 Thread Sandeep khanzode
Hello, Stuck at this time. Any help will be appreciated. I am able to create a queryable state and also query the state. Everything works correctly. KeyedStream, Key> stream = sourceStream.keyBy(t2 -> t2.f0); stream.asQueryableState("queryableVO"); I deploy this on a Kubernetes cluster with

Restore from Checkpoint from local Standalone Job

2021-03-26 Thread Sandeep khanzode
Hello I was reading this: https://stackoverflow.com/questions/61010970/flink-resume-from-externalised-checkpoint-question I am trying to run a standalone job on my local with a single job manager and task manager. I have enabled checkpointing as below: env.setStateBackend(new

FlinkKafkaConsumer - Broadcast - Initial Load

2021-03-25 Thread Sandeep khanzode
Hi, I have a master/reference data that needs to come in through a FlinkKafkaConsumer to be broadcast to all nodes and subsequently joined with the actual stream for enriching content. The Kafka consumer gets CDC-type records from database changes. All this works well. My question is how do

Re: Flink on Minikube

2021-03-25 Thread Sandeep khanzode
ci.apache.org/projects/flink/flink-docs-stable/dev/project-configuration.html#setting-up-a-project-basic-dependencies> > On Tue, Mar 23, 2021 at 5:28 AM Sandeep khanzode <mailto:sand...@shiftright.ai>> wrote: > Hi Arvid, > > I copy the JAR to the usrlib folder. This works in t

Re: QueryableStateClient getKVState

2021-03-23 Thread Sandeep khanzode
problem? > > Best, > Matthias > > On Tue, Mar 23, 2021 at 5:28 AM Sandeep khanzode <mailto:sand...@shiftright.ai>> wrote: > Hi, > > I have a stream that exposes the state for Queryable State. > > I am using the key as follows: > > public class

Re: Flink on Minikube

2021-03-22 Thread Sandeep khanzode
jar should be ~1MB. > > On Fri, Mar 19, 2021 at 8:58 PM Sandeep khanzode <mailto:sand...@shiftright.ai>> wrote: > Hello, > > I have a fat JAR compiled using the Man Shade plugin and everything works > correctly when I deploy it on a standalone local cluster i.e. one

QueryableStateClient getKVState

2021-03-22 Thread Sandeep khanzode
Hi, I have a stream that exposes the state for Queryable State. I am using the key as follows: public class MyKey { private Long first; private EnumType myType; private Long second; private TreeMap map; @Override public boolean equals(Object o) { if (this == o)

Flink on Minikube

2021-03-19 Thread Sandeep khanzode
Hello, I have a fat JAR compiled using the Man Shade plugin and everything works correctly when I deploy it on a standalone local cluster i.e. one job and one task manager node. But I installed Minikube and the same JAR file packaged into a docker image fails with weird serialization

Get JobId and JobManager RPC Address in RichMapFunction executed in TaskManager

2021-02-24 Thread Sandeep khanzode
Hello, I am deploying a standalone-job cluster (cluster with a single Job and Task Manager instance instantiated with a —job-classname and —job-id). I have map/flatmap/process functions being executed in the various stream functions in the Taskmanager for which I need access to the Job Id and

Re: State Access Beyond RichCoFlatMapFunction

2021-02-19 Thread Sandeep khanzode
k/flink-docs-release-1.12/dev/stream/state/queryable_state.html > > <https://ci.apache.org/projects/flink/flink-docs-release-1.12/dev/stream/state/queryable_state.html> > > On February 9, 2021 at 22:09:29, Sandeep khanzode (sand...@shiftright.ai > <mailto:sand...@shif

Re: State Access Beyond RichCoFlatMapFunction

2021-02-12 Thread Sandeep khanzode
gether and keyBy them. This way you can have all three > streams’ states in downstream without duplication. > > Best, > Kezhu Wang > On February 11, 2021 at 20:49:20, Sandeep khanzode (sand...@shiftright.ai > <mailto:sand...@shiftright.ai>) wrote: > >> Hello

Re: State Access Beyond RichCoFlatMapFunction

2021-02-11 Thread Sandeep khanzode
g/apache/flink/test/streaming/runtime/MultipleInputITCase.java#L113 > > <https://github.com/apache/flink/blob/master/flink-tests/src/test/java/org/apache/flink/test/streaming/runtime/MultipleInputITCase.java#L113> > > On February 10, 2021 at 17:19:15, Sandeep khanzode (sand...@s

Re: State Access Beyond RichCoFlatMapFunction

2021-02-10 Thread Sandeep khanzode
able/dev/stream/state/broadcast_state.html > > <https://ci.apache.org/projects/flink/flink-docs-stable/dev/stream/state/broadcast_state.html> > > Best, > Kezhu Wang > > On February 10, 2021 at 13:03:36, Sandeep khanzode (sand...@shiftright.ai > <mailto:sand...@s

Re: State Access Beyond RichCoFlatMapFunction

2021-02-09 Thread Sandeep khanzode
tate/queryable_state.html> > > On February 9, 2021 at 22:09:29, Sandeep khanzode (sand...@shiftright.ai > <mailto:sand...@shiftright.ai>) wrote: > >> Hello, >> >> I am creating a class that extends RichCoFlatMapFunction. I need to >> connect() tw

State Access Beyond RichCoFlatMapFunction

2021-02-09 Thread Sandeep khanzode
Hello, I am creating a class that extends RichCoFlatMapFunction. I need to connect() two streams to basically share the state of one stream in another. This is what I do: private transient MapState state; @Override public void open(Configuration parameters) throws Exception {