简体   繁体   English

如何在titan / cassandra中删除和创建图?

[英]How to delete and create graphs in titan/cassandra?

I am just wondering how to delete an entire graph from titan/cassandra? 我只是想知道如何从titan / cassandra中删除整个图?

I've set up Titan with Elastic Search, Cassandra and Rexster from the website. 我已经通过网站上的Elastic Search,Cassandra和Rexster设置了Titan。 I created a simple graph called "graph". 我创建了一个简单的图形,称为“ graph”。 The problem I encountered is I did not realize that 我遇到的问题是我没有意识到

Once an index has been created for a key, it can never be removed . Once an index has been created for a key, it can never be removed

So I when experimenting I made a lot of random indexes good and bad. 因此,当我进行实验时,我做了很多随机索引的好坏。 I tried renaming it in rexster-cassandra-es.xml thinking it would lose the reference but it just continued with a different rexster path. 我尝试在rexster-cassandra-es.xml中重命名它,以为它会丢失参考,但只是继续使用不同的rexster路径。

Also how do you create new databases? 另外,您如何创建新数据库? When I started Rexster it just created a database named "graph" for me and I noticed that it allowed you to choose which database to use. 当我启动Rexster时,它刚刚为我创建了一个名为“ graph”的数据库,我注意到它允许您选择要使用的数据库。

Thank you very much. 非常感谢你。

You can do a few things, but the easiest might be to simply shutdown casssandra/elastic search/rexster and just delete the data directories. 您可以做一些事情,但最简单的方法可能是仅关闭casssandra / elastic search / rexster并删除数据目录。 Restart it all and get a fresh start. 重新启动所有程序,并重新开始。 You could also drop the "titan" key space in cassandra and delete indices in elastic search...the instructions for these approaches would be in the respective documentation for each component. 您还可以在cassandra中删除“ titan”键空间,并在弹性搜索中删除索引...这些方法的说明将在每个组件的相应文档中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM