NotSerializableException org.neo4j.kernel.EmbeddedGraphDatabase [英] NotSerializableException org.neo4j.kernel.EmbeddedGraphDatabase
问题描述
我正在使用 neo4j 创建图形,将 mongodb 中的数据作为文档.独立代码在没有风暴的情况下运行良好.但是在将它与 Storm 集成时,我得到了 -
<块引用>java.io.NotSerializableException: org.neo4j.kernel.EmbeddedGraphDatabase
例外.不知道我得到这个的确切原因.如果有人遇到此类问题,请告诉我如何解决.
Storm 中用于属性/字段的所有类都必须实现接口 Serializable
.我假设您在 Collector.emit(new Values(...))
中使用了 EmbeddedGraphDatabase
类型的对象(直接或以嵌套方式).>
I am working with neo4j to create graph, taking data from mongodb as document. Standalone code is working fine without storm. But while integrating it with storm, I am getting -
java.io.NotSerializableException: org.neo4j.kernel.EmbeddedGraphDatabase
exception. Dont know the exact reason why i am getting this. If anybody faced such issue please let me know how to resolve it.
All classes that are used for attributes/fields in Storm must implement the interface Serializable
. I assume that you are using a object of type EmbeddedGraphDatabase
within Collector.emit(new Values(...))
(either directly or in a nested way).
这篇关于NotSerializableException org.neo4j.kernel.EmbeddedGraphDatabase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!