在windows上安装titan db时出错

dldeef67  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(486)

遵循titan db的官方指南,并尝试运行命令:

graph = TitanFactory.open('conf/titan-cassandra-es.properties')

我有个错误:

Backend shorthand unknown: conf/titan-cassandra-es.properties

显然,原因是错误的路径
titan-cassandra-es.properties公司
文件。所以我把它改成:

graph = TitanFactory.open('../conf/titan-cassandra-es.properties')

出现了这个错误:

Encountered unregistered class ID: 141.

错误发生在以下版本中:titan-0.5.4-hadoop2
在titan-1.0.0-hadoop2上,我得到的不是这个错误消息:

Invalid import definition: 'com.thinkaurelius.titan.hadoop.MapReduceIndexManagement'; reason: startup failed: script14747941661821834264593.groovy: 1: unable to resolve class com.thinkaurelius.titan.hadoop.MapReduceIndexManagement  @ line 1, column 1.    import com.thinkaurelius.titan.hadoop.MapReduceIndexManagement    ^

1 error

在titan-1.0.0-hadoop2上我得到一个:

The input line is too long.
The syntax of the command is incorrect.

有人知道如何处理这个问题吗?

bq8i3lrv

bq8i3lrv1#

看来你还没来得及 Titan 1 启动了。
我不相信 Titan 1 已部署以支持开箱即用的windows。i、 e.可下载的软件包不仅仅适用于windows。
说我已经设法让titan db 1在windows上工作了。为此,您只需在windows上安装Cassandra2.x即可。这本指南可能对你有所帮助。启动cassandra并启用thrift连接。
这样你就可以让titan在windows上做基本的操作了。从那里你会发现处理当前的错误更容易。
旁注:windows支持 Titan 0.5.x 可能更重要。所以你也可以调查一下。

相关问题