JanusGraph/janusgraph

Kryo registrator options for Spark

开放

#1,194 创建于 2018年7月27日

 (2 条评论) (0 个反应) (0 位负责人)Java (1,137 个派生)batch import
area/docsarea/sparkhelp wantedkind/enhancement

仓库指标

星标
 (4,985 个星标)
PR 合并指标
 (平均合并 3天 18小时) (30 天内合并 12 个 PR)

描述

This came up during a documentation review:

https://github.com/JanusGraph/janusgraph/blob/0.2/janusgraph-hadoop-parent/janusgraph-hadoop-core/src/test/resources/cassandra-read.properties#L30 Should we use:

spark.kryo.registrator=org.janusgraph.hadoop.serialize.JanusGraphKryoRegistrator

Or:

spark.kryo.registrator=org.apache.tinkerpop.gremlin.spark.structure.io.gryo.GryoRegistrator

JanusGraphKryoRegistrator only registers a serializer for Geoshape, while the TinkerPop GryoRegistrator handles many different classes. JanusGraphKryoRegistrator does not extend GryoRegistrator.

We need some clarity on how to configure the Kryo registrator to cover all required TinkerPop and JanusGraph classes. Also will need updates on the documentation and the properties files in the distribution.

贡献者指南