Hi Jayant, There should be a Serializer parameter in the constructor of the StateDescriptor, you should create a new serializer like this:
new GenericTypeInfo(classOf[UUID]).createSerializer(env.getConfig) By the way, can you show us your kryo exception like what Gordon said? Jiayi Liao, Best Original Message Sender:Tzu-Li (Gordon) taitzuli...@apache.org Recipient:Jayant ametawittyam...@gmail.com; bupt_ljybupt_...@163.com Cc:useru...@flink.apache.org Date:Thursday, Oct 25, 2018 17:18 Subject:Re: Queryable state when key is UUID - getting Kyro Exception Hi Jayant, What is the Kryo exception message that you are getting? Cheers, Gordon On 25 October 2018 at 5:17:13 PM, Jayant Ameta (wittyam...@gmail.com) wrote: Hi, I've not configured any serializer in the descriptor. (Neither in flink job, nor in state query client). Which serializer should I use? Jayant Ameta On Thu, Oct 25, 2018 at 2:13 PM bupt_ljy bupt_...@163.com wrote: Hi, It seems that your codes are right. Are you sure that you’re using the same Serializer as the Flink program do? Could you show the serializer in descriptor? Jiayi Liao, Best Original Message Sender:Jayant ametawittyam...@gmail.com Recipient:useru...@flink.apache.org Date:Thursday, Oct 25, 2018 14:17 Subject:Queryable state when key is UUID - getting Kyro Exception I get Kyro exception when querying the state. Key: UUID MapStateUUID, String Client code snippet: CompletableFutureMapStateUUID, String resultFuture = client.getKvState(JobID.fromHexString("c7b8af14b8afacf4fac16cdd0da7e997"), "rule", UUID.fromString("3b3f17a0-d81a-11e8-bb91-7fd1412de84d"), TypeInformation.of(new TypeHintUUID() {}), descriptor); MapStateUUID, String mapState = resultFuture.get(10, TimeUnit.SECONDS); Any better way to query it? Jayant Ameta