You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR is about adding SSL support for zkPython, based on the C-binding. I also fixed the zkpython ant build to work with the current maven top-level build. I also added a new python test case to try to connect to ZooKeeper with SSL.
You can test this patch in the following way:
```
# cleanup everything, just to be on the safe side:
git clean -xdf
# on ubuntu 16.4 make sure you have the following packages installed
apt-get install -y libcppunit-dev openssl libssl-dev python-setuptools python2.7 python2.7-dev
# make a full build (incl. C-client)
mvn clean install -DskipTests -Pfull-build
# we only support python2, so e.g. on ubuntu 18.4 you need to switch to python2
update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
# compile and test zkpython
cd zookeeper-contrib/zookeeper-contrib-zkpython/
ant compile
ant test
```
Author: Mate Szalay-Beko <[email protected]>
Reviewers: [email protected]Closesapache#1121 from symat/ZOOKEEPER-3567 and squashes the following commits:
a5839cb [Mate Szalay-Beko] Merge remote-tracking branch 'apache/master' into ZOOKEEPER-3567
d25d610 [Mate Szalay-Beko] ZOOKEEPER-3567: fix build issues after top-level ant removal
a8869c9 [Mate Szalay-Beko] Merge remote-tracking branch 'apache/master' into HEAD
b92f686 [Mate Szalay-Beko] ZOOKEEPER-3567: fix license check issue
0150986 [Mate Szalay-Beko] ZOOKEEPER-3567: removing code duplication: re-use test SSL certificate generator from C-client tests
7d91359 [Mate Szalay-Beko] ZOOKEEPER-3567: add SSL support for zkpython
Copy file name to clipboardexpand all lines: zookeeper-contrib/zookeeper-contrib-zkpython/README
+6-2
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,18 @@ DEPENDENCIES:
7
7
8
8
This has only been tested against SVN (i.e. 3.2.0 in development) but should work against 3.1.1.
9
9
10
-
You will need the Python development headers installed to build the module - on many package-management systems, these can be found in python-devel.
10
+
You will need the Python development headers installed to build the module - on many package-management systems, these can be found in python-devel. (On ubuntu 18.4, install python2.7 and python2.7-dev.)
11
11
12
12
Python >= 2.6 is required. We have tested against 2.6. We have not tested against 3.x.
13
13
14
+
E.g. setting up tpyhon and python devel on ubuntu 18.4:
To install, make sure that the C client has been built and that the libraries are installed in /usr/local/lib (or change this directory in setup.py). Then run:
21
+
To install, make sure that the C client has been built (use `mvn clean install -DskipTests -Pfull-build` in the root folder of zookeeper) or that the zookeeper C libraries are installed in /usr/local/lib (or change this directory in setup.py). Then run:
0 commit comments