No, it doesn't work even if I increase the timeout. The state being fetched is a Map of data and has around 100 entries in it. I have a single job manager and 3 task managers with 16 slots each running on AWS EC2.
final TypeSerializer<String> keySerializer = TypeInformation.of(new TypeHint<String>() {}).createSerializer(new ExecutionConfig()); final TypeSerializer<HashMap<String, Object>> valueSerializer = TypeInformation.of(new TypeHint<HashMap<String, Object>>() {}).createSerializer(new ExecutionConfig()); final byte[] serializedKey = KvStateRequestSerializer.serializeKeyAndNamespace( key, keySerializer, VoidNamespace.INSTANCE, VoidNamespaceSerializer.INSTANCE); final FiniteDuration duration = new FiniteDuration(5, TimeUnit.MINUTES); On Fri, Sep 15, 2017 at 6:44 AM, Kostas Kloudas <k.klou...@data-artisans.com > wrote: > Hi Navneeth, > > If you increase the timeout, everything works ok? > I suppose from your config that you are running in standalone mode, right? > > Any other information about the job (e.g. code and/or size of state being > fetched) and > the cluster setup that can help us pin down the problem, would be > appreciated. > > Thanks, > Kostas > > On Sep 13, 2017, at 7:12 PM, Navneeth Krishnan <reachnavnee...@gmail.com> > wrote: > > Hi, > > I am sure I have provided the right job manager details because the > connection timeout ip is the task manager where the state is kept. I guess > the client is able to reach the job manager and figure out where the state > is. Also if I provide a wrong state name, I'm receiving unknown state > exception. I couldn't find why there is a timeout and a warning message is > logged in the job manager. > > On Wed, Sep 13, 2017 at 4:20 AM, Biplob Biswas <revolutioni...@gmail.com> > wrote: > >> Hi, >> >> >> are you sure your jobmanager is running and is accessible from the >> supplied >> hostname and port? If you can start up the FLink UI of the job which >> creates >> your queryable state, it should have the details of the job manager and >> the >> port to be used in this queryable client job. >> >> >> >> -- >> Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4. >> nabble.com/ >> > > >