elasticsearch和cassandra不会出现在java进程表中

dohp0rv5  于 2021-06-10  发布在  Cassandra
关注(0)|答案(0)|浏览(259)

我正在尝试使用docker在google计算引擎中使用cassandra(3.11.5)和elastic seaarch(7.5.2)设置janusgraph(最新版本)。当我运行docker ps-a时,所有容器都已启动并运行。但是,当我尝试更新模式时,我面临以下错误:

gremlin-groovy is not an available GremlinScriptEngine
org.apache.tinkerpop.gremlin.jsr223.console.RemoteException: gremlin-groovy is not an available GremlinScriptEngine
        at org.apache.tinkerpop.gremlin.console.jsr223.DriverRemoteAcceptor.submit(DriverRemoteAcceptor.java:184)
        at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:234)

当我研究上面的错误时,我发现如果ElasticSearch不起作用,就有可能抛出这个错误。因此,我通过运行bin/janusgraph.sh命令来检查janusgraph的状态,然后出现以下两个错误

Gremlin-Server (org.apache.tinkerpop.gremlin.server.GremlinServer) is running with pid 31
Elasticsearch (org.elasticsearch.bootstrap.Elasticsearch) does not appear in the java process table
Cassandra (org.apache.cassandra.service.CassandraDaemon) does not appear in the java process table

gremlin服务器工作正常,但elasticsearch和cassandra不工作。我找到了关于上述问题的各种文章,但没有一篇对我有用。
这是我的docker-compose.yml文件:

version: "3"

services:
  janusgraph:
    image: janusgraph/janusgraph:latest
    container_name: jce-janusgraph
    environment:
      JANUS_PROPS_TEMPLATE: cassandra-es
      janusgraph.storage.backend: cql
      janusgraph.storage.hostname: jce-cassandra
      janusgraph.index.search.hostname: jce-elastic
    volumes:
     - /mnt/anyadvicevol/janus/scripts:/opt/janusgraph/tmp/scripts
        #      - /mnt/anyadvicevol/janus/conf/gremlin-server.yaml:/opt/janusgraph/conf/gremlin-server/gremlin-server.yaml
        #      - /mnt/anyadvicevol/janus/conf/janusgraph-cassandra-es-server.properties:/opt/janusgraph/conf/gremlin-server/janusgraph-cassandra-es-server.properties
        #      - /mnt/anyadvicevol/janus/tconf/janusgraph-cql-es-server.properties:/opt/janusgraph/conf/gremlin-server/janusgraph-cql-es-server.properties
        #      - /mnt/anyadvicevol/janus/tconf/janusgraph.sh:/opt/janusgraph/bin/janusgraph.sh
        #      - /mnt/anyadvicevol/janus/tconf/gremlin-server.sh:/opt/janusgraph/bin/gremlin-server.sh
    ports:
      - "8182:8182"
    networks:
      - jce-network
    healthcheck:
      test: ["CMD", "bin/gremlin.sh", "-e", "scripts/remote-connect.groovy"]
      interval: 10s
      timeout: 30s
      retries: 3
    entrypoint:
      - bin/gremlin-server.sh
      - conf/gremlin-server/gremlin-server.yaml
  cassandra:
    image: cassandra:3.11.5
    container_name: jce-cassandra
    volumes:
      - /mnt/anyadvicevol/cassandra:/var/lib/cassandra
    ports:
      - "7000:7000"
      - "9042:9042"
      - "9160:9160"
    networks:
      - jce-network
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
    container_name: jce-elastic
    environment:
      - "ES_JAVA_OPTS=-Xms108m -Xmx108m"
      - "http.host=0.0.0.0"
      - "network.host=0.0.0.0"
      - "transport.host=127.0.0.1"
      - "cluster.name=docker-cluster"
      - "xpack.security.enabled=false"
      - "discovery.zen.minimum_master_nodes=1"
    volumes:
      - /mnt/anyadvicevol/elas/data:/usr/share/elasticsearch/data
    ports:
      - "9200:9200"
      - "9300:9300"
        #    command: ['chown', '-R', '1000:1000', '/usr/share/elasticsearch/data']        
    networks:
      - jce-network

networks:
  jce-network:

您可以看到janusgraph卷的注解行,我对此进行了注解,因为这些文件是作为文件夹而不是文件装载的。
有没有办法解决上述问题。提前谢谢

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题