Giter Club home page Giter Club logo

titan-tools's Introduction

titan-tools

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

Usage

  • 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()

Disclaimer

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!

titan-tools's People

Contributors

bdeggleston avatar

Watchers

Bill Ho avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.