Git Product home page Git Product logo

asynccassandra's Introduction

AsyncCassandra

AsyncCassandra is a shim for using Cassandra as a backend for OpenTSDB instead of the default HBase backend. Because you can configure Cassandra to operate similar to HBase, albeit without the consistency guarantees, swapping out the backend is pretty easy.

Enforcing the TSD schema on Cassandra requires using the Thrift interface and this library uses Netflix's Astyanax library for a higher level API. Also note that because this is a shim and not a low level client, performance may not match that of AsyncHBase. Additionally, because Cassandra doesn't support atomic mutations, locking for atomic increments is implemented by writing a special lock column and checking the timestamps to see who won with retries if acquisition failed. That means UID assignments will be messy.

To use TSDB with Cassandra, your cluster must use the ByteOrderedPartitioner:

partitioner:  org.apache.cassandra.dht.ByteOrderedPartitioner

Build instructions

Maven has been adopted as the building tool for this project. To produce jar file, run

mvn clean package

For OpenTSDB, make sure you're using version 2.3 from GitHub (as of 11/2/2015 the "put" branch) and compile with

sh build-cassandra.sh

Configuration

In your opentsdb.conf file, set asynccassandra.seeds to the proper value for your Cassandra cluster. E.g. asynccassandra.seeds=127.0.0.1:9160 Also set tsd.storage.hbase.uid_table = tsdbuid and tsd.storage.hbase.data_table = tsdb

asynccassandra's People

Contributors

manolama avatar alienth 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.