[jira] Updated: (ZOOKEEPER-765) Add python example script

2010-07-27 Thread Mahadev konar (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mahadev konar updated ZOOKEEPER-765:


  Status: Resolved  (was: Patch Available)
Hadoop Flags: [Reviewed]
Release Note: A skeleton script that shows how to setup znode watches and 
how to react to events using the Python client libraries.   (was: Travis 
Crawford wrote a skeleton script that shows how to setup znode watches and how 
to react to events using the Python client libraries. )
  Resolution: Fixed

+1 the patch looks good. I just committed this.

thanks travis and andrei!

 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, 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.



[jira] Updated: (ZOOKEEPER-765) Add python example script

2010-07-14 Thread Patrick Hunt (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Hunt updated ZOOKEEPER-765:
---

Status: Open  (was: Patch Available)

Andrei, you need to add apache license headers to the files (*.py in this 
case), see any python script already in SVN for an example of this.

 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.



[jira] Updated: (ZOOKEEPER-765) Add python example script

2010-07-14 Thread Andrei Savu (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrei Savu updated ZOOKEEPER-765:
--

Status: Patch Available  (was: Open)

 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, 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.



[jira] Updated: (ZOOKEEPER-765) Add python example script

2010-07-14 Thread Andrei Savu (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrei Savu updated ZOOKEEPER-765:
--

Attachment: ZOOKEEPER-765.patch

Added license files and a reference to Henry's queue implementation hosted on 
Github. 

 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, 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.



[jira] Updated: (ZOOKEEPER-765) Add python example script

2010-07-09 Thread Andrei Savu (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrei Savu updated ZOOKEEPER-765:
--

  Status: Patch Available  (was: Open)
Release Note: Travis Crawford wrote a skeleton script that shows how to 
setup znode watches and how to react to events using the Python client 
libraries. 
Assignee: Andrei Savu  (was: Travis Crawford)

 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.



[jira] Updated: (ZOOKEEPER-765) Add python example script

2010-07-09 Thread Andrei Savu (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrei Savu updated ZOOKEEPER-765:
--

Attachment: ZOOKEEPER-765.patch

I have created a patch containing the script Travis wrote. I have also fixed 
some typos and added more comments that explain how to play with it. 

I have also added a reference to zk-smoketest [1] because that's another good 
example that shows how to use the python ZooKeeper client library. 

[1] http://github.com/phunt/zk-smoketest 

 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: Travis Crawford
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.



[jira] Updated: (ZOOKEEPER-765) Add python example script

2010-05-05 Thread Patrick Hunt (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Hunt updated ZOOKEEPER-765:
---

 Assignee: Travis Crawford
Fix Version/s: 3.4.0
  Component/s: contrib-bindings

 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: Travis Crawford
Priority: Minor
 Fix For: 3.4.0

 Attachments: zk.py


 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.



[jira] Updated: (ZOOKEEPER-765) Add python example script

2010-05-04 Thread Travis Crawford (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Travis Crawford updated ZOOKEEPER-765:
--

Attachment: zk.py

 Add python example script
 -

 Key: ZOOKEEPER-765
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-765
 Project: Zookeeper
  Issue Type: Improvement
  Components: documentation
Reporter: Travis Crawford
Priority: Minor
 Attachments: zk.py


 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.