java - Kafka Storm Integration -
i trying integrate kafka , storm.
i have created spout read kafka messages , emit them them tuples.
while running storm topology, getting below exception
caused by: java.io.notserializableexception: kafka.javaapi.consumer.zookeeperconsumerconnector @ java.io.objectoutputstream.writeobject0(objectoutputstream.java:1184) ~[?:1.8.0_45] @ java.io.objectoutputstream.defaultwritefields(objectoutputstream.java:1548) ~[?:1.8.0_45] @ java.io.objectoutputstream.writeserialdata(objectoutputstream.java:1509) ~[?:1.8.0_45] @ java.io.objectoutputstream.writeordinaryobject(objectoutputstream.java:1432) ~[?:1.8.0_45] @ java.io.objectoutputstream.writeobject0(objectoutputstream.java:1178) ~[?:1.8.0_45] @ java.io.objectoutputstream.writeobject(objectoutputstream.java:348) ~[?:1.8.0_45] @ backtype.storm.utils.utils.javaserialize(utils.java:87) ~[storm-core-0.10.0.jar:0.10.0] ... 2 more
you should declare non-serializable fields in spout transient. these fields should initialized in open method of spout.
Comments
Post a Comment