简体   繁体   中英

How to delete and create graphs in titan/cassandra?

I am just wondering how to delete an entire graph from titan/cassandra?

I've set up Titan with Elastic Search, Cassandra and Rexster from the website. I created a simple graph called "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 .

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.

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.

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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