【发布时间】:2015-07-09 21:21:06
【问题描述】:
我正在努力使用 Hbase 设置 Titan。以下是我遵循的步骤,
- 下载的titan-hbase
- 已下载 cygwin
- 已安装 Hbase(引用此 http://hbase.apache.org/cygwin.html)
- Hbase 在 cygwin 中运行。
- 5.Titan 在我的 Windows 上运行,基本的 gremlin 控制台即将启动。
现在我想将 Hbase 作为存储加载到 titan 中。 我不明白如何在 Titan 中进行配置,以便它映射到 hbase(在 cygwin shell(命令提示符)中运行。
我正在我的 Titan 控制台上尝试这样的事情
gremlin> TitanGraph g = TitanFactory.open('conf\titan-hbase-es.properties');
我遇到了错误
Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager显示堆栈跟踪? [yN]
java.lang.IllegalArgumentException: Could not instantiate implementation:com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager 在 com.thinkaurelius.titan.diskstorage.Backend.instantiate(Backend.java:355) 在 com.thinkaurelius.titan.diskstorage.Backend.getImplementationClass(Backend.java:367) 在 com.thinkaurelius.titan.diskstorage.Backend.getStorageManager(Backend.java:311) 在 com.thinkaurelius.titan.diskstorage.Backend.(Backend.java:121) 在 com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.getBackend(GraphDatabaseConfiguration.java:1173) 在 com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.(StandardTitanGraph.java:75) 在 com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:40) 在 com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:29) 在 com.thinkaurelius.titan.core.TitanFactory$open.call(未知来源) 在 org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) 在 org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) 在 org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) 在 groovysh_evaluate.run(groovysh_evaluate:56) 在 groovysh_evaluate$run.call(未知来源) 在 org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) 在 org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) 在 org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) 在 org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:67) 在 org.codehaus.groovy.tools.shell.Interpreter$evaluate.call(未知 资源) 在 org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) 在 org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) 在 org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) 在 org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:152) 在 org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:114) 在 org.codehaus.groovy.tools.shell.Shell$leftShift$0.call(未知来源) 在 org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) 在 org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) 在 org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) 在 org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:88) 在 org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method.invoke(Method.java:606) 在 org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) 在 groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) 在 groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1079) 在 org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128) 在 org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148) 在 org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:100) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method.invoke(Method.java:606) 在 org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:272) 在 org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52) 在 org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46) 在 org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) 在 org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:137) 在 org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:57) 在 org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$run(InteractiveShellRunner.groovy) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method.invoke(Method.java:606) 在 org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) 在 groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) 在 groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1079) 在 org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128) 在 org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148) 在 org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:66) 在 com.thinkaurelius.titan.tinkerpop.gremlin.Console.(Console.java:57) 在 com.thinkaurelius.titan.tinkerpop.gremlin.Console.(Console.java:70) 在 com.thinkaurelius.titan.tinkerpop.gremlin.Console.main(Console.java:96) 引起:java.lang.reflect.InvocationTargetException 在 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 在 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 在 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 在 java.lang.reflect.Constructor.newInstance(Constructor.java:526) 在 com.thinkaurelius.titan.diskstorage.Backend.instantiate(Backend.java:344) ... 63 更多原因:com.thinkaurelius.titan.diskstorage.PermanentStorageException:失败 创建目录 D:\GraphDBTitan\titan-all-0.4.4\bin\conf
itan-hbase-es.properties 用于本地存储。 在 com.thinkaurelius.titan.diskstorage.util.DirectoryUtil.getOrCreateDataDirectory(DirectoryUtil.java:24) 在 com.thinkaurelius.titan.diskstorage.common.LocalStoreManager.(LocalStoreManager.java:29) 在 com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager.(BerkeleyJEStoreManager.java:36) ... 68 更多
请有人帮我解决这个问题。
【问题讨论】:
-
尝试安装在linux机器上,如果没有,使用windows里面的虚拟机。使用 Windows+Cygwin,您总是会遇到多个兼容性问题,祝您好运:)
标签: java hadoop cygwin hbase titan