Hi,

I need to store a object in the configuration. I am trying to use
DefaultStringifier's load and store methods, but I get the following
exception while storing:

java.lang.NullPointerException
        at
org.apache.hadoop.io.serializer.SerializationFactory.getSerializer(SerializationFactory.java:73)
        at
org.apache.hadoop.io.DefaultStringifier.<init>(DefaultStringifier.java:59)
        at
org.apache.hadoop.io.DefaultStringifier.store(DefaultStringifier.java:110)

I have explicitly set the JavaSerializer in the config:

conf.set("io.serializations",
"org.apache.hadoop.io.serializer.JavaSerialization");

and my object implements the Serializable interface. Its not a very large
object, so I dont want to implement Writable.
Can anyone please shed some light on how I can avoid this error?

Thanks and Regards,
Sonal

Reply via email to