elasticsearch 使用DynamoDB和ElasticSearch作为后端在JanusGraph中创建索引
我正在尝试使用弹性搜索创建索引 我在dynamodb.properties中有以下内容:elasticsearch 使用DynamoDB和ElasticSearch作为后端在JanusGraph中创建索引,elasticsearch,amazon-dynamodb,janusgraph,elasticsearch,Amazon Dynamodb,Janusgraph,我正在尝试使用弹性搜索创建索引 我在dynamodb.properties中有以下内容: index.search.backend=elasticsearch index.search.hostname=10.0.0.55 gremlin服务器毫无例外地出现 我能够从gremlin控制台连接到gremlin服务器 :remote connect tinkerpop.server conf/remote.yaml session :remote console 我在图中创建了以下顶点: gre
index.search.backend=elasticsearch
index.search.hostname=10.0.0.55
gremlin服务器毫无例外地出现
我能够从gremlin控制台连接到gremlin服务器
:remote connect tinkerpop.server conf/remote.yaml session
:remote console
我在图中创建了以下顶点:
gremlin> g.V().properties()
==>vp[name->sandeep]
==>vp[name->uday]
我试图在属性“name”上创建索引,但它却陷入了“INSTALLED”状态
3589249[gremlin-server-session-1]INFO org.janusgraph.graphdb.database.management.GraphIndexStatusWatcher-索引byNameComposite上的某些键当前没有状态[已注册]:name=INSTALLED
3589709[gremlin-server-worker-1]WARN org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessor-脚本求值超过了为请求配置的阈值[RequestMessage{,requestId=40375b29-d180-4732-9816-24870fb1b3b1,op='eval',processor='session',args={gremlin=mgmt waitgraphindexstatus(图,'byNameComposite')。call(),session=ef0c3a0e-bef0-4a93-bc29-7869c1fd24db,bindings={},manageTransaction=false,batchSize=64}]
java.util.concurrent.TimeoutException:脚本求值超过了配置的“scriptEvaluationTimeout”阈值30000毫秒,或者直接取消了请求[mgmt.awaitGraphIndexStatus(图形“byNameComposite”).call()的求值
我用ES和Cassandra在本地Janusgraph上做了同样的尝试,并且能够使用索引
请帮帮我。
感谢您的帮助
谢谢
桑德普
graph.tx().rollback() //Never create new indexes while a transaction is active
mgmt = graph.openManagement()
name = mgmt.getPropertyKey('name')
mgmt.buildIndex('byNameComposite', Vertex.class).addKey(name).buildCompositeIndex()
mgmt.commit()
//Wait for the index to become available
mgmt.awaitGraphIndexStatus(graph, 'byNameComposite').call()