1

我按照说明配置一个独立的 gremlin 以使用文档使用 Janusgraph:http: //docs.janusgraph.org/latest/server.html。我无法使用文档中提到的命令下载 jars。

bin/gremlin-server.sh -i org.janusgraph janusgraph-all $VERSION

它失败并显示以下错误消息:

无法安装依赖项:错误抓取葡萄 - [未解决的依赖项:com.sleepycat#je;7.3.7:未找到] java.lang.RuntimeException:错误抓取葡萄 - [未解决的依赖项:com.sleepycat#je;7.3 .7:未找到] 在 org.codehaus.groovy.vmplugin 的 groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:424) 的 org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232) .v7.IndyInterface.selectMethod(IndyInterface.java:232) 在 groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:571) 在 org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232) 在groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:534) at groovy.grape.Grape.resolve(Grape.java:202) at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232)在 org.apache。tinkerpop.gremlin.groovy.util.DependencyGrabber.copyDependenciesToPath(DependencyGrabber.groovy:124) 在 org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232) 在 org.apache.tinkerpop.gremlin.groovy。 org.apache.tinkerpop.gremlin.server.util.GremlinServerInstall.main(GremlinServerInstall.java:38) 上的 util.DependencyGrabber.copyDependenciesToPath(DependencyGrabber.groovy:77)

另外,我还按照说明设置了一个grapeConfig.xml。这是它的外观:

    <ivysettings>
  <settings defaultResolver="downloadGrapes"/>
  <resolvers>
    <chain name="downloadGrapes">
      <filesystem name="cachedGrapes">
        <ivy pattern="${user.home}/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml"/>
        <artifact pattern="${user.home}/.groovy/grapes/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/>
      </filesystem>
      <ibiblio name="local" root="file:${user.home}/.m2/repository/" m2compatible="true"/>
      <ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true"/>
      <ibiblio name="central" root="http://central.maven.org/maven2/" m2compatible="true"/>
      <ibiblio name="jitpack" root="https://jitpack.io" m2compatible="true"/>
      <ibiblio name="java.net2" root="http://download.java.net/maven/2/" m2compatible="true"/>
    </chain>
  </resolvers>
</ivysettings>

我正在使用 janusgraph 0.2.0 版。

知道我在这里想念什么吗?

4

1 回答 1

0

通常不需要将 JanusGraph 安装到单独的 Gremlin 服务器中。JanusGraph 发行版已经包含一个 Gremlin 服务器,其适用的 Apache TinkerPop 版本可供使用(JanusGraph 0.2.0 使用 Apache TinkerPop 3.2.6)。bin/gremlin-server.sh您可以使用脚本启动 Gremlin 服务器。

如果您仍想将 JanusGraph 安装到独立的 Gremlin 服务器中,则需要更新grapeConfig.xml以包含 Oracle 存储库,其中包含com.sleepycatOracle BerkeleyDB Java 版的工件:

<ibiblio name="oracle" root="http://download.oracle.com/maven" m2compatible="true"/>
于 2017-12-19T16:23:19.863 回答