titan-tools is a set of tools for repairing inconsistencies in titan cassandra backed graph databases
titan-tools will:
- repair indicies that reference deleted vertices or associate incorrect values with existing vertices
- perform graph wide reindex for a type
- properly remove partially deleted vertices
- clone repo and build project
- copy titan-tools-*.jar into titan/lib
- start bin/gremlin.sh
- see below for gremlin shell usage
//first, create your graph instance
g = TitanGraphFactory.open('cassandra.properties')
//second, instantiate a TitanGraphTools object
fx = com.shift.titantools.TitanGraphTools.create(g)
//find problems, but don't repair
fx.checkType("type_name")
//find problems, and repair
fx.repairType("type_name")
//perform a graph wide reindex of a type
fx.reindexType("type_name")
//find, but don't delete partially deleted vertices
fx.checkVertices()
//find and delete partially deleted vertices
fx.cleanVertices()
Titan Tools is
- a new project
- has only been tested against Titan 0.2.1
so test your repairs on a local copy of your graph first!