Titan图DB,使用外部索引进行查询时的Java异常(Elasticsearch)

时间:2014-03-13 22:19:04

标签: graph groovy indexing titan

我有一个小图表DB,400k节点和150k边缘。

我按照“类型定义概述”“索引后端概述”指示来创建密钥,外部索引并查询它们,我已经完成了:

g.makeKey('State')。dataType(String.class).indexed('dev-titan',Vertex.class).make();

'dev-titan'= Elasticsearch索引名称

我可以在字段名称“4O”下找到elasticsearch,titan index中的状态值。

当我运行此查询时,20分钟或更长时间后我得到了这个

rexster [常规] GT; G = rexster.getGraph( '曲线图') ==> titangraph [卡桑德拉:xx.xx.x.xxx]

rexster [常规] GT; g.query()。具有( “国家”,EQUAL, “TN”)。顶点()

2014年3月13日下午5:10:58 org.glassfish.grizzly.filterchain.DefaultFilterChain执行 警告:FilterChain执行期间出现异常 java.lang.ClassCastException:com.tinkerpop.rexster.protocol.msg.ErrorResponseMessage无法强制转换为org.glassfish.grizzly.asyncqueue.WritableMessage         at org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleWrite(TCPNIOTransportFilter.java:111)         at org.glassfish.grizzly.filterchain.TransportFilter.handleWrite(TransportFilter.java:191)         在org.glassfish.grizzly.filterchain.ExecutorResolver $ 8.execute(ExecutorResolver.java:111)         在org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:265)         在org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)         在org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)         在org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)         在org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:78)         在org.glassfish.grizzly.filterchain.FilterChainContext.write(FilterChainContext.java:652)         在org.glassfish.grizzly.filterchain.FilterChainContext.write(FilterChainContext.java:533)         在com.tinkerpop.rexster.client.RexProClientFilter.handleRead(RexProClientFilter.java:155)         在org.glassfish.grizzly.filterchain.ExecutorResolver $ 9.execute(ExecutorResolver.java:119)         在org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:265)         在org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)         在org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)         在org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)         在org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:78)         在org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:815)         在org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)         在org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)         在org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access $ 100(WorkerThreadIOStrategy.java:55)         在org.glassfish.grizzly.strategies.WorkerThreadIOStrategy $ WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)         在org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker.doWork(AbstractThreadPool.java:567)         在org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker.run(AbstractThreadPool.java:547)         在java.lang.Thread.run(Thread.java:744)

标准指数运作良好。

我可能做错了什么?

我赞美任何帮助

0 个答案:

没有答案