Comments (5)
This lib use zkpython as zookeeper client.
See:
Line 4 in bf4ee5d
from pymesos.
from pymesos.
https://github.com/douban/pymesos/releases/tag/0.3.10
from pymesos.
I wanted to follow up, because I'm not sure what the intention of the following code is:
https://github.com/douban/pymesos/blob/master/pymesos/detector.py
try:
from zookeeper import ZooKeeperException as ZookeeperError
from .zkpython import ZKClient, ChildrenWatch, DataWatch
def adjust_zk_logging_level():
pass
except ImportError:
from kazoo.client import KazooClient as ZKClient
from kazoo.recipe.watchers import ChildrenWatch, DataWatch
from kazoo.exceptions import ZookeeperError
def adjust_zk_logging_level():
import logging
import kazoo
kazoo.client.log.setLevel(logging.WARNING)
kazoo.protocol.connection.log.setLevel(logging.WARNING)
It looks to me like this code attempts to use the zkpython library, if available, and if not it falls back to kazoo.
kazoo is the pure python zookeeper client, which is preferable to me for the same reason that I'm attempting to use pymesos: it doesn't rely on native client libraries or installed headers.
I've been using kazoo, not zkpython, because I lack the zookeeper header files necessary to install zkpython. I would prefer to go the pure python route, since native libraries aren't available in my development environment (Mac OS X), or production (barebones Linux with no Internet access).
from pymesos.
@dan-at-teza zkpython
used in our production and we have no reason to replace it. You could either make it configurable(PR is welcome) or use your fork version.
from pymesos.
Related Issues (20)
- Using 'offer_id' instead of 'inverse_offer_id' in RescindInverseOffer
- MesosOperatorMasterDriver cannot subscribe to events HOT 7
- Process.start() method does not call Process._notify() HOT 7
- Missing comma in list.
- Exponential backoff for executors incompatible with default & max executor_reregistration_timeout HOT 1
- Add support for HTTPS HOT 2
- Add support for executor authentication HOT 1
- Add specific timeout for http requests HOT 3
- pymesos doesn't install on python 3.7 HOT 5
- Ability to run 10,000 tasks HOT 1
- Pymesos doesn't install properly on python3.11 due to http_parser
- python version, is python2 and python3 compatible? HOT 2
- Scheduler failover flag is unsettable HOT 13
- Socket errors are not handled properly which is resulting in unexpected behavior HOT 2
- how do i get status of a task from scheduler? HOT 3
- Custom field on update dictionary not working HOT 2
- Error parsing `mins` and `ns` time units since items()
- Framework does not get HeartBeats HOT 1
- Timeout for connection refused errors?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymesos.