blob: 4dca5d06ac08ed35704d30ca073350d0cffe078c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
Install
#######
Install with your favorite package manager
Latest Release
**************
Pip:
.. code:: bash
pip install kafka-python
Releases are also listed at https://github.com/dpkp/kafka-python/releases
Bleeding-Edge
*************
.. code:: bash
git clone https://github.com/dpkp/kafka-python
pip install ./kafka-python
Setuptools:
.. code:: bash
git clone https://github.com/dpkp/kafka-python
easy_install ./kafka-python
Using `setup.py` directly:
.. code:: bash
git clone https://github.com/dpkp/kafka-python
cd kafka-python
python setup.py install
Optional LZ4 install
********************
To enable LZ4 compression/decompression, install lz4tools and xxhash:
>>> pip install lz4tools
>>> pip install xxhash
*Note*: these modules do not support python2.6
Optional Snappy install
***********************
Install Development Libraries
=============================
Download and build Snappy from http://code.google.com/p/snappy/downloads/list
Ubuntu:
.. code:: bash
apt-get install libsnappy-dev
OSX:
.. code:: bash
brew install snappy
From Source:
.. code:: bash
wget http://snappy.googlecode.com/files/snappy-1.0.5.tar.gz
tar xzvf snappy-1.0.5.tar.gz
cd snappy-1.0.5
./configure
make
sudo make install
Install Python Module
=====================
Install the `python-snappy` module
.. code:: bash
pip install python-snappy
|