Git Product home page Git Product logo

snakebite's Introduction

Snakebite

Snakebite is a python library that provides a pure python HDFS client and a wrapper around Hadoops minicluster. The client uses protobuf for communicating with the NameNode and comes in the form of a library and a command line interface. Currently, the snakebite client supports most actions that involve the Namenode and reading data from DataNodes.

Note: all methods that read data from a data node are able to check the CRC during transfer, but this is disabled by default because of performance reasons. This is the opposite behaviour from the stock Hadoop client.

Snakebite requires python2 (python3 is not supported yet) and python-protobuf 2.4.1 or higher.

Snakebite 1.3.x has been tested mainly against Cloudera CDH4.1.3 (hadoop 2.0.0) in production. Tests pass on HortonWorks HDP 2.0.3.22-alpha (protocol versions 7 and 8)

Snakebite 2.x has been tested on Hortonworks HDP2.0 and CDH5 Beta and ONLY supports Hadoop 2.2.0 and up (protocol version 9)!

Installing

Snakebite releases are available through pypi at https://pypi.python.org/pypi/snakebite/

The quickest way to install snakebite (1.3.x) is to run:

pip install -I snakebite==1.3.x

To install snakebite 2.x run:

pip install snakebite

Documentation

More information and documentation can be found at http://spotify.github.io/snakebite/

Development

NOTE: make sure you have java 7 installed - it's required for testing, verify
java -version

To start playing with snakebite first you need to clone repository:

git clone [email protected]:spotify/snakebite.git

We recommend to use virtualenv (+ virtualenvwrapper) for development purposes:

pip install virtualenvwrapper

Create development environment for snakebite development:

mkvirtualenv snakebite_dev

Fetch all developer requirements:

pip install -r requirements-dev.txt

Run tests:

python setup.py test

Tests should succeed (remember to always test your changes).

Now install snakebite in your virtualenv, to ease development process:

python setup.py develop

Now, go ahead hack and come back with pull requests <3

Travis CI status

https://api.travis-ci.org/spotify/snakebite.png

Copyright 2013-2014 Spotify AB

snakebite's People

Contributors

ravwojdyla avatar hammer avatar aarya123 avatar gbadiali avatar phoet avatar kawaa avatar anyman avatar julian avatar ogrisel 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.