0

DataStax Enterprise gremlin 콘솔의 gremlin 문서에서 일부 샘플 쿼리를 실행하려고합니다.gremlin 쿼리가 데이터 stax gremlin 콘솔에서 실행되지 않습니다.

gremlin> x = [1,2,3] 
==>1 
==>2 
==>3 
gremlin> x._().transform{it+1} 
No signature of method: java.util.ArrayList._() is applicable for argument types:() values: [] 
Possible solutions: is(java.lang.Object), min(), pop(), any(), max(), sum() 
Type ':help' or ':h' for help. 
Display stack trace? [yN]y 
org.apache.tinkerpop.gremlin.groovy.plugin.RemoteException: No signature of method: java.util.ArrayList._() is applicable for argument types:() values: [] 
Possible solutions: is(java.lang.Object), min(), pop(), any(), max(), sum() 
    at org.apache.tinkerpop.gremlin.console.groovy.plugin.DriverRemoteAcceptor.submit(DriverRemoteAcceptor.java:188) 
    at org.apache.tinkerpop.gremlin.console.GremlinGroovysh.execute(GremlinGroovysh.groovy:99) 
    at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:122) 
    at org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:95) 
    at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy) 
    at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:498) 
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) 
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213) 
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:132) 
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:152) 
    at org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:124) 
    at org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:59) 
    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:498) 
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) 
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) 
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213) 
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:132) 
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:152) 
    at org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:83) 
    at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232) 
    at org.apache.tinkerpop.gremlin.console.Console.<init>(Console.groovy:169) 
    at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232) 
    at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:481) 
gremlin> 

제가 알고 싶습니다. 어떤 버전의 Gremlin 서버, 클라이언트가 Datastax Enterprise 버전 5.1에서 사용 되었습니까?

쿼리가 실패한 이유는 무엇입니까?

답변

1

DSE 그래프는 TinkerPop 2.x에 내장되어 있지 않습니다. 2.x는 더 이상 유지 관리되지 않으며 GremlinDocs은 여전히이를 사용하는 레거시 응용 프로그램에 대한 참조 용입니다.

DSE Graph는 최신 그래프 데이터베이스와 마찬가지로 TinkerPop 3.x를 지원합니다. 여기에 문서가 있습니다 : http://tinkerpop.apache.org/