hadoop-zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Savu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ZOOKEEPER-765) Add python example script
Date Tue, 13 Jul 2010 18:06:50 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887896#action_12887896
] 

Andrei Savu commented on ZOOKEEPER-765:
---------------------------------------

I think Henry's queue should also be part of this patch: http://github.com/henryr/pyzk-recipes
What do you think? 

> Add python example script
> -------------------------
>
>                 Key: ZOOKEEPER-765
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-765
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: contrib-bindings, documentation
>            Reporter: Travis Crawford
>            Assignee: Andrei Savu
>            Priority: Minor
>             Fix For: 3.4.0
>
>         Attachments: zk.py, ZOOKEEPER-765.patch
>
>
> When adding some zookeeper-based functionality to a python script I had to figure everything
out without guidance, which while doable, would have been a lot easier with an example. I
extracted a skeleton program structure out with hopes its useful to others (maybe add as an
example in the source or wiki?).
> This script does an aget() and sets a watch, and hopefully illustrates what's going on,
and where to plug in your application code that gets run when the znode changes.
> There are probably some bugs, which if we fix now and provide a well-reviewed example
hopefully others will not run into the same mistakes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message