How to configure serializer/deserializer at the cluster level. I am able to set the serializer/deserializer at client level using the following Java code.
ClientConfig clientConfig = new ClientConfig();
SerializerConfig userDataSerializer = new
SerializerConfig().setTypeClass(UserData.class).setImplementation(new
UserDataSerializer()); clientConfig.getSerializationConfig().addSerializerConfig(userDataSerializer);
But while make SQL query it's throwing following error.
Exception in thread "main" com.hazelcast.nio.serialization.HazelcastSerializationException: There is no suitable de-serializer for type 2. This exception is likely to be caused by differences in the serialization configuration between members or between clients and members.
Above error is happening because the Hazelcast cluster does not know how to serializer/deserializer the object.
I am using a custom serializer using Kryo to serialize (based on this blog http://blog.hazelcast.com/comparing-serialization-methods/)
Please help!
In the cluster, each node needs to know the serializer/de-serializer to perform the Predicate/SQLPredicate. For that, the required serializer class (as a Java jar file) should be present in start command Java CLASSPATH.