Код: Выделить всё
Caused by: java.lang.IllegalArgumentException: Configuration file at conf/remote-objects.yaml does not exist
at org.apache.tinkerpop.gremlin.driver.Cluster.open(Cluster.java:262)
at org.apache.tinkerpop.gremlin.driver.remote.DriverRemoteConnection.(DriverRemoteConnection.java:77)
Код Java:
Код: Выделить всё
package com.example
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;
import static org.apache.tinkerpop.gremlin.process.traversal.AnonymousTraversalSource.traversal;
public class Main {
public static void main(String[] args) {
try {
GraphTraversalSource g = traversal().withRemote("conf/remote-graph.properties");
} catch (Exception e) {
System.out.println(e.getMessage());
e.printStackTrace();
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/787 ... -yaml-file
Мобильная версия