g = TitanFactory.open('conf/titan-cassandra-es.properties')
r = LegacyGraphSONReader.build().create()
r.readGraph(new FileInputStream('/data/devGraph.json'), g)
javax.script.ScriptException: java.io.IOException: java.lang.IllegalArgumentException: Invalid vertex provided: null
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/7d0b8df9-52a7-4770-84e6-f670a18892a2%40googlegroups.com.
org.apache.tinkerpop.gremlin.process.traversal.util.FastNoSuchElementException
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/11b7c478-539b-4a7b-a93a-754a2e48212f%40googlegroups.com.
TitanManagement m = graph.openManagement();
...
PropertyKey yappId = m.makePropertyKey(YappVertex.SY_YAPP_ID).dataType(String.class).cardinality(Cardinality.SINGLE).make();
VertexLabel yappVertex = m.makeVertexLabel(YappVertex.VERTEX_TYPE).partition().make();
m.buildIndex("yappIdIndex", Vertex.class).addKey(yappId).indexOnly(yappVertex).unique().buildCompositeIndex();
...
m.commit();
tr = g.traversal();
v = tr.V().has('sy_yapp_id', '14134705042663177').next()
Could not find a suitable index to answer graph query and graph scans are disabled: [(sy_yapp_id = 14134705042663177)]:VERTEX
TitanManagement m = g.openManagement();
TitanGraphIndex tgi = m.getGraphIndex("yappIdIndex");
PropertyKey yappId = m.getPropertyKey(YappVertex.SY_YAPP_ID);
logger.info("getBackingIndex: " + tgi.getBackingIndex());
logger.info("getFieldKeys: " + tgi.getFieldKeys());
logger.info("getIndexedElement: " + tgi.getIndexedElement());
logger.info("getIndexStatus:" + tgi.getIndexStatus(yappId));
[2015-11-04 10:19:10,694] [main] [INFO ] [Main] - getBackingIndex: internalindex
[2015-11-04 10:19:10,903] [main] [INFO ] [Main] - getFieldKeys: [Lcom.thinkaurelius.titan.core.PropertyKey;@2e179f3e
[2015-11-04 10:19:10,904] [main] [INFO ] [Main] - getIndexedElement: interface com.thinkaurelius.titan.core.TitanVertex
[2015-11-04 10:19:10,904] [main] [INFO ] [Main] - getIndexStatus:ENABLED
tr.V().has('sy_yapp_id', '14134705042663177')
tr.V().has(YappVertex.VERTEX_TYPE, 'sy_yapp_id', '14134705042663177')
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/32f3ff54-edc4-4d62-b9c6-550e8fcce94e%40googlegroups.com.
org.apache.tinkerpop.gremlin.process.traversal.util.FastNoSuchElementException
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/ed2497ef-4868-4787-b21c-ba401aee91cf%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seXqzyz1Patu58Ey2RCnbNjtONN_ESc%2BYk_h-5Km4dsMUQ%40mail.gmail.com.
gremlin> g.V().hasNext()
No signature of method: com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.V() is applicable for argument types: () values: []
Possible solutions: tx(), io(org.apache.tinkerpop.gremlin.structure.io.Io$Builder), is(java.lang.Object), any(), any(groovy.lang.Closure), use([Ljava.lang.Object;)
Display stack trace? [yN]
y
groovy.lang.MissingMethodException: No signature of method: com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.V() is applicable for argument types: () values: []
Possible solutions: tx(), io(org.apache.tinkerpop.gremlin.structure.io.Io$Builder), is(java.lang.Object), any(), any(groovy.lang.Closure), use([Ljava.lang.Object;)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:56)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:114)
at groovysh_evaluate.run(groovysh_evaluate:3)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:69)
at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:185)
at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:119)
at org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:94)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:150)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:123)
at org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:58)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$run(InteractiveShellRunner.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:150)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:82)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.apache.tinkerpop.gremlin.console.Console.<init>(Console.groovy:144)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:303)
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/1e1acf6f-6134-4e28-a140-fc83af2633e8%40googlegroups.com.
Could not find a suitable index to answer graph query and graph scans are disabled: [()]:VERTEX
...
...
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/0add0920-6d9c-48e4-89f2-d700157e592c%40googlegroups.com.
...
...