I'm having an issue with TreeMaps that have a byte[] key.
These are what is required when using HBaseDynamicScheme but Kryo doesnt seem to be able to serialize/deserialize them.
TupleSerializationProps.addSerialization(jobProperties, KryoSerialization.class.getName());
KryoFactory.ClassPair pair = new KryoFactory.ClassPair(TreeMap.class, ByteArrayTreeMapSerializer.class);
jobProperties.setProperty("cascading.kryo.registrations", pair.toString());
But while this seems to work for serialization, when deserializing I get the below error:
Caused by: com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID: 109
at com.esotericsoftware.kryo.util.DefaultClassResolver.readClass(DefaultClassResolver.java:119)
at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:610)
at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:721)
at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:134)
at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:17)
at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:626)
at cascading.kryo.KryoDeserializer.deserialize(KryoDeserializer.java:37)
Anyone seen this before or have any ideas?
Cheers!