Tommu10ve opened a new issue, #2774:
URL: https://github.com/apache/incubator-hugegraph/issues/2774

   ### Problem Type (问题类型)
   
   None
   
   ### Before submit
   
   - [x] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 
[FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have 
confirmed and searched that there are no similar problems in the historical 
issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.5.0 (Apache Release Version)
   - Backend: cassandra 1 nodes,  SSD 
   - OS: 16 CPUs, 96 G RAM
   - Data Size:  0 vertices, 0 edges
   
   
   ### Your Question (问题描述)
   
   启动脚本
   ```
   version: "3"
   
   services:
     hugegraph:
       image: hugegraph/hugegraph:1.5.0
       container_name: zfh-hugegraph
       ports:
         - 8080:8080
       environment:
         #  - PRELOAD=true 为可选参数,为 True 时可以在启动的时候预加载一个内置的样例图
         #  - PASSWORD=123456 为可选参数,设置的时候可以开启鉴权模式,并设置密码
         hugegraph.backend: cassandra
         hugegraph.serializer: cassandra
         hugegraph.cassandra.host: zfh-cassandra
         hugegraph.cassandra.port: 9042
       networks:
         - ca-network
       depends_on:
         - cassandra
       healthcheck:
         test: ["CMD", "bin/gremlin-console.sh", "--" ,"-e", 
"scripts/remote-connect.groovy"]
         interval: 10s
         timeout: 30s
         retries: 5
   
     cassandra:
       image: cassandra:4
       container_name: zfh-cassandra
       ports:
         - 7000:7000
         - 9042:9042
       security_opt:
         - seccomp:unconfined  # 禁用默认的安全配置文件,避免某些 Cassandra 操作被限制。
       networks:
         - ca-network
       healthcheck:
         test: ["CMD", "cqlsh", "--execute", "describe keyspaces;"]
         interval: 10s
         timeout: 30s
         retries: 5
   
   networks:
     ca-network:
   
   volumes:
     hugegraph-data:
   
   ```
   
   执行过程
   ```
   
   :/hugegraph-server# ./bin/gremlin-console.sh 
   WARNING: An illegal reflective access operation has occurred
   WARNING: Illegal reflective access by 
org.codehaus.groovy.reflection.CachedClass 
(file:/hugegraph-server/lib/groovy-2.5.14-indy.jar) to method 
java.lang.Object.finalize()
   WARNING: Please consider reporting this to the maintainers of 
org.codehaus.groovy.reflection.CachedClass
   WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
   WARNING: All illegal access operations will be denied in a future release
   
            \,,,/
            (o o)
   -----oOOo-(3)-oOOo-----
   plugin activated: HugeGraph
   plugin activated: tinkerpop.server
   plugin activated: tinkerpop.utilities
   plugin activated: tinkerpop.tinkergraph
   gremlin> :remote connect tinkerpop.server conf/remote.yaml
   ==>Configured localhost/127.0.0.1:8182
   gremlin>  :> g.V()
   No such property: g for class: Script4
   Type ':help' or ':h' for help.
   Display stack trace? [yN]y
   groovy.lang.MissingPropertyException: No such property: g for class: Script4
           at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:65)
           at 
org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:51)
           at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:309)
           at Script4.run(Script4.groovy:1)
           at 
org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.eval(GremlinGroovyScriptEngine.java:676)
           at 
org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.eval(GremlinGroovyScriptEngine.java:378)
           at 
java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:233)
           at 
org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.lambda$eval$0(GremlinExecutor.java:272)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at 
org.apache.hugegraph.auth.HugeGraphAuthProxy$ContextTask.run(HugeGraphAuthProxy.java:1915)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
   gremlin> :remote console
   ==>All scripts will now be sent to Gremlin Server - 
[localhost/127.0.0.1:8182] - type ':remote console' to return to local mode
   gremlin> graph = 
EmptyGraph.instance().traversal().withRemote('conf/remote.yaml')
   No signature of method: 
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource.withRemote()
 is applicable for argument types: (String) values: [conf/remote.yaml]
   Type ':help' or ':h' for help.
   Display stack trace? [yN]y
   groovy.lang.MissingMethodException: No signature of method: 
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource.withRemote()
 is applicable for argument types: (String) values: [conf/remote.yaml]
           at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:70)
           at 
org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
           at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
           at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
           at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
           at Script5.run(Script5.groovy:1)
           at 
org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.eval(GremlinGroovyScriptEngine.java:676)
           at 
org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.eval(GremlinGroovyScriptEngine.java:378)
           at 
java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:233)
           at 
org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.lambda$eval$0(GremlinExecutor.java:272)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at 
org.apache.hugegraph.auth.HugeGraphAuthProxy$ContextTask.run(HugeGraphAuthProxy.java:1915)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
   gremlin> 
   
   ```
   
   为什么在容器内部也不能链接 gremlinServer 并进行 gremlin语法操作
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   ```javascript
   
   ```
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   ```javascript
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to