Giter VIP home page Giter VIP logo

Comments (5)

mihir6692 avatar mihir6692 commented on August 30, 2024

@phunt

from zk-smoketest.

phunt avatar phunt commented on August 30, 2024

Which version of ZK are you trying to update to?

from zk-smoketest.

mihir6692 avatar mihir6692 commented on August 30, 2024

I am trying create files for 3.4.x ( currently 3.4.10) versions.

from zk-smoketest.

phunt avatar phunt commented on August 30, 2024

That's odd. When you run zksmokes python scripts they are going to need access to the python native libraries as well as the zookeeper c client libraries.

Notice there are two libraries here:


$ ls lib.linux-i686-2.6/
libzookeeper_mt.so.2* zookeeper.so*


initzookeeper is in ./src/contrib/zkpython/src/c/zookeeper.c from zookeeper - meaning it's the python library, not in the zk client library. (python lib uses the zk c client lib)

Are you sure that both sets of libraries are available when you run the zk smoketest python script?

A few things to check: did you recompile zkpython as well from zk contrib and make it accessible to the smoketest python scripts when executing?

I haven't regenerated those files myself in quite some time. I just tried it using the following process and it worked OK.

  1. used docker to spin up an ubuntu container with 14.04 (and nothing ZK specific)
  2. used git to clone zk and checked out 3.4.10 release tag.
  3. compiled the java code, c client, and zkpython in zk. used "install" targets to ensure everything is in the expected location (python 2.7.6 with python-dev also installed via apt-get)
  4. started the zk server so that we'd have something to talk to
  5. cloned zk-smoketest. deleted the "lib*" directories from zk-smoketest
  6. ran "./zk-smoketest.py --servers "localhost:2181" which executed successfully

from zk-smoketest.

mihir6692 avatar mihir6692 commented on August 30, 2024

Thanks for tip. I was not building Java code and because of that test-classes were not created in build/ folder. Also i didnt build contrib code earlier.

Here are the steps i followed :-

From zookeeper repo:-

ant

ant mvn-deploy

ant complie_jute

cd src/c/

find where ACLOCAL is installed
ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -if

./configure

sudo make install

cd ../contrib

ant

cd zkpython

this last step will create zookeeper.so and install zookeeper.so into python/dist-packages
location of zookeeper.so :- zookeeper/build/contrib/zkpython/lib.linux-x86_64-2.7/

sudo ant

from zk-smoketest.

Related Issues (5)

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.