How do I drop Data, Schema from Janus and Keyspace from Cassandra?

208 views
Skip to first unread message

Debasish Kanhar

unread,
Jan 9, 2018, 3:49:52 AM1/9/18
to JanusGraph users
Hi,

I would like to purge all data stored in my Janus, (For a particular keyspace). How would I go forward with it?

We have 2 dev servers, one with Janus 0.1.1 and other with 0.2.0. I know that doing JanusGraphFactory.drop(graph) drops data and schema, but looks like that works only for Janus Graph 0.2.0.

Is there an elegant way to drop all data on Janus Graph 0.1.1 without using g.V().drop().iterate() ?.

Note: JanusGraphFactory.drop(graph) throws error on Janus 0.1.1.

Thanks

l.gut...@web.de

unread,
Jan 9, 2018, 2:12:42 PM1/9/18
to JanusGraph users
Hey there, 
try:
gremlin>graph.close()
gremlin
>org.janusgraph.core.util.JanusGraphCleanup.clear(graph)

this works for me on JanusGraph 0.2 with Cassandra. But i have to reenable CassandraThrift afterwards. 
Reply all
Reply to author
Forward
0 new messages