Re: Question about connecting to HBase
Jerry <boyeggp...@...>
Hi Marc, I use the GraphOfTheGodsFactory example and the load method is exactly same as the source code. The following is the code snippet and the link to github :https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-core/src/main/java/org/janusgraph/example/GraphOfTheGodsFactory.java public static void loadWithoutMixedIndex(final JanusGraph graph, boolean uniqueNameCompositeIndex) { load(graph, null, uniqueNameCompositeIndex); } public static void load(final JanusGraph graph) { load(graph, INDEX_NAME, true); } public static void load(final JanusGraph graph, String mixedIndexName, boolean uniqueNameCompositeIndex) { Based on the error message, it seems the program stopped at open() function before the load(): Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/MasterNotRunningException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.janusgraph.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:56) at org.janusgraph.diskstorage.Backend.getImplementationClass(Backend.java:480) at org.janusgraph.diskstorage.Backend.getStorageManager(Backend.java:414) at org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.<init>(GraphDatabaseConfiguration.java:1343) at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:107) at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:75) at org.janusgraph.example.GraphOfTheGodsFactory.main(GraphOfTheGodsFactory.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) Thanks in advance, Jerry On Sunday, April 23, 2017 at 7:11:51 PM UTC+8, HadoopMarc wrote:
|
|