alegjk
alegjk
导入数据失败
### Expected behavior 期望表现 期望hugegraph-loader导入数据正常 ### Actual behavior 实际表现 实际导入数据报错 ### Steps to reproduce the problem 复现步骤 下载 hugegraph-loader 0.7解压后运行(hugegraph-server运行正常,也实现执行过init-store)按照官方文档 运行的命令:bin/hugegraph-loader -g hugegraph -f example/struct.json -s example/schema.groovy 报错: Exception in...
hugegraph-0.7.4/conf/hugegraph.properties配置文件, 增加如下配置: batch.max_edges_per_batch=1000 batch.max_vertices_per_batch=1000 将顶点数据和边数据按照1000进行批量导入,Rest服务器直接返回500错误,整型和字符串转换失败: b'{"exception":"class java.lang.ClassCastException","message":"java.lang.String cannot be cast to java.lang.Integer","cause":""}'
hugegraph 0.8.0请问预计什么时候发布? 等着新的API还有 cassandra的二级索引bug修复解救我们。。
请教下, 生产环境我们用的hugegraph+cassandra集群存放图数据,顶点在1.5亿左右,边在2亿左右,顶点的label类别有3类,对应ID:1, 2, 3 现在有个业务场景: 我们要从顶点表graph_vertices中全量获取label id为2的顶点(label id为1或者3的顶点暂时忽略)做分析(分析用的Python), 请教下, 现有的Hugegraph rest接口中有没有效率较高的 不重复顺序获取目标顶点的方式?非常感谢
现在查询Vertex的API主要是: GET http://localhost:8080/graphs/hugegraph/graph/vertices 无论是按照属性过滤还是按照分页查询, 返回的都是节点的全量信息,太厚重了, 能不能指定返回的properties列表, 比如只返回vertex的id?
使用Rest接口 http://localhost:8080/gremlin 查询分页的时候,生成下一页的pageid无法访问 场景: 本地hugegraph+mysql对接,模拟数据在一直往hugegraph插入顶点和边 使用Python下发Rest接口, 分页查询数据(分页查询数据参考的https://hugegraph.github.io/hugegraph-doc/clients/restful-api/vertex.html)每次都是根据前一次返回的下一页id,重新组装URL下发,发现执行到第四页以后,第五页执行报错(第四页返回的第五页的id跟前面几页的id长度都不一致) 第一页URL:http://127.0.0.1:8080/graphs/hugegraph/graph/vertices?**limit=2000&page** 第二页URL:http://127.0.0.1:8080/graphs/hugegraph/graph/vertices?limit=2000&**page=eyJMQUJFTCI6MiwiUFJPUEVSVElFUyI6IntcIjEzXCI6XCJ1c2VyaWRfMjc5OVwifSIsIklEIjoiUzI6dXNlcmlkXzI3OTkifQ==** 第三页URL:http://127.0.0.1:8080/graphs/hugegraph/graph/vertices?limit=2000&**page=eyJMQUJFTCI6MiwiUFJPUEVSVElFUyI6IntcIjEzXCI6XCJ1c2VyaWRfNDU5OVwifSIsIklEIjoiUzI6dXNlcmlkXzQ1OTkifQ==** 第四页URL:http://127.0.0.1:8080/graphs/hugegraph/graph/vertices?limit=2000&**page=eyJMQUJFTCI6MiwiUFJPUEVSVElFUyI6IntcIjEzXCI6XCJ1c2VyaWRfNjM5OVwifSIsIklEIjoiUzI6dXNlcmlkXzYzOTkifQ==** 第五页URL:http://127.0.0.1:8080/graphs/hugegraph/graph/vertices?limit=2000&**page=eyJMQUJFTCI6MiwiUFJPUEVSVElFUyI6IntcIjEzXCI6XCJ1c2VyaWRfODJcIn0iLCJJRCI6IlMyOnVzZXJpZF84MiJ9** 第五页的URL执行报错
我们目前生产环境有大约3000万个顶点, 其中约1/3的顶点要做gremlin的推导,我们用rest接口异步下发, 并发数设置的100, 刚开始的时候,效率在100 vetices/s,处理了大约12万个顶点以后, 执行就非常慢了,日志出现大量慢查询日志, 单个顶点的推导耗时在9000ms+ 这个时候, 负载,内存,CPU都不高 请教下: 1.rest接口下发gremlin并发数设置多少比较合理? 2我们的语句是否写的有问题? 非常感谢! ps:我们的推导是分析1000万个用户之间的隐藏关系 查询语句大致如下,(关系粒度比较细,语句有点大): g.V('USER_1234567').as('vertices').union(__.as('vertex').out('create_read_doc_url').limit(10).in('click_read_doc_url').limit(10).id().groupCount('direct_read_relation'), __.as('vertex').out('create_write_doc_url').limit(10).in('click_write_doc_url').limit(10).id().groupCount('direct_write_relation'), __.as('vertex').out('create_community_url').limit(10).in('click_community_url').limit(10).id().groupCount('direct_group_relation'), __.as('vertex').out('click_read_doc_url').limit(10).in('click_read_doc_url').limit(10).id().where(neq('vertex')).groupCount('indirect_read_relation'), __.as('vertex').out('click_write_doc_url').limit(10).in('click_write_doc_url').limit(10).id().where(neq('vertex')).groupCount('indirect_write_relation'), __.as('vertex').out('click_community_url').limit(10).in('click_community_url').limit(10).id().where(neq('vertex')).groupCount('indirect_group_relation'), __.as('vertex').out('click_read_doc_url').limit(10).in('in_normal_community').limit(10).in('click_community_url').limit(10).id().where(neq('vertex')).groupCount('indirect_read_enhanced_relation'), __.as('vertex').out('click_write_doc_url').limit(10).in('in_normal_community').limit(10).in('click_community_url').limit(10).id().where(neq('vertex')).groupCount('indirect_write_enhanced_relation')).cap('direct_read_relation','direct_write_relation', 'direct_group_relation','indirect_read_relation','indirect_write_relation', 'indirect_group_relation', 'indirect_read_enhanced_relation', 'indirect_write_enhanced_relation')
对于hugegraph.properties中的配置项: cassandra.host= cassandra.port= cassandra.username cassandra.password 请教下 cassandra.host是否可以将cassandra集群中的所有节点IP 都写上?
CASSANDRA_COMPRESSION 配置项目前可选 [none, snappy, lz4] 想咨询下, 之前我们用的是none配置项, 现在想换成lz4试试效果, 请问, 这个需要重新执行Init-store吧?需要重启cassandra集群么?