【问题标题】:Issue in connecting titan with hbase将titan与hbase连接的问题
【发布时间】:2018-11-14 15:22:59
【问题描述】:

我正在尝试将 titan(0.5.2) 与 hbase(0.98.6) 连接。

hadoop 和 hbase 我都启动了,我的 JPS 命令如下所示,

25824 HRegionServer
24227 NameNode
24403 DataNode
25557 HQuorumPeer
24778 ResourceManager
28412 Jps
25630 HMaster
25007 NodeManager

hbase-site.xml:

<property>
    <name>hbase.zookeeper.property.clientPort</name>
    <value>2222</value>
</property>

titan-hbase.properties

storage.hostname=127.0.0.1
cache.db-cache = true
cache.db-cache-time = 180000
cache.db-cache-size = 0.5

我已经使用./titan.sh start ../conf/titan-hbase.properties这个命令启动了titan。

9841 RemoteMavenServer
20643 CassandraDaemon
9381 Main
29512 Jps
21132 Application
27278 Launcher
21071 Elasticsearch

并使用 gremlin 控制台进行连接,

gremlin&gt; TitanFactory.build().set('storage.backend', 'hbase').set('storage.hostname', '127.0.0.1:2222').open()

但是我没有从 gremlin 控制台得到任何对此命令的响应。没有错误或堆栈跟踪。只是没有连接。你能帮帮我吗,我对这个使用 hbase 的巨头完全陌生。

【问题讨论】:

    标签: graph hbase titan


    【解决方案1】:

    这个属性文件在我使用 Titan 0.5.4 时使用 g = TitanFactory.open('/tmp/titan.properties'):

    storage.backend=hbase
    storage.hostname=127.0.0.1
    storage.hbase.ext.hbase.zookeeper.property.clientPort=2222
    storage.hbase.table=graphtest
    

    使用与构建器 TitanFactory.build()... 相同的属性但不起作用:

    命名空间 [root.storage.hbase.ext] 中的未知配置元素:zookeeper

    请记住,Titan 0.5.2 已经过时(2014 年 11 月发布),它依赖于 TinkerPop 2.5.0(2014 年 4 月发布)。 Titan 和 TinkerPop 2.x 不再处于积极开发阶段。

    您应该考虑继续使用 JanusGraph,它是 Titan 的一个分支,拥有一个活跃且开放的社区,并且与 Apache TinkerPop 3.x 的最新版本保持同步。

    【讨论】:

      猜你喜欢
      • 2017-10-13
      • 1970-01-01
      • 2018-09-22
      • 2016-05-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-16
      • 2016-01-06
      相关资源
      最近更新 更多