I want to use Java API to manipulate graph on a remote server, the server actually hosts in localhost. The code I use to connect server is:
JanusGraphFactory.Builder b = JanusGraphFactory.build();
b.set("hosts", "[localhost]");
JanusGraph graph = b.open();
But after I run the program, it throws exception like this:
Exception in thread "main" java.lang.IllegalStateException: Need to set configuration value: root.storage.backend
So how can I connect to a remote JanusGraph server using Java API?