You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Mahadev konar (JIRA)" <ji...@apache.org> on 2009/04/03 19:38:12 UTC

[jira] Created: (ZOOKEEPER-364) command line interface for zookeeper.

command line interface for zookeeper.
-------------------------------------

                 Key: ZOOKEEPER-364
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
             Project: Zookeeper
          Issue Type: New Feature
            Reporter: Mahadev konar


currently we have a shell based interface for zookeeper (which again isnt well published). we should have a cli based interface for zookeeper.

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


[jira] Commented: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12698021#action_12698021 ] 

Mahadev konar commented on ZOOKEEPER-364:
-----------------------------------------

chris,
 please do open a new jira. we would be more than happy to "adopt" Net::Zookeeper. 

> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>             Fix For: 3.2.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.

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


[jira] Commented: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Chris Darroch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697997#action_12697997 ] 

Chris Darroch commented on ZOOKEEPER-364:
-----------------------------------------

Well (and this should move to a new Jira issue, I guess) if you're willing to "adopt" Net::ZooKeeper I'm happy to fill out a Software Grant next week and submit that.  I don't think there should be any license or copyright issues as I already have a ICLA on file and all the work is exclusively mine.

> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>             Fix For: 3.2.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.

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


[jira] Commented: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703426#action_12703426 ] 

Patrick Hunt commented on ZOOKEEPER-364:
----------------------------------------

I entered Vegard's comments as a new JIRA:
https://issues.apache.org/jira/browse/ZOOKEEPER-386


> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>             Fix For: 3.2.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.

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


[jira] Updated: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mahadev konar updated ZOOKEEPER-364:
------------------------------------

    Affects Version/s: 3.0.0
                       3.0.1
                       3.1.0
                       3.1.1
        Fix Version/s: 3.2.0

> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>             Fix For: 3.2.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.

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


[jira] Commented: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696193#action_12696193 ] 

Mahadev konar commented on ZOOKEEPER-364:
-----------------------------------------

chris,
 I think it would be a good addition to have the perl module as part of Zookeeper contrib package. also it would be great to have a python bindings as well. It would be great to have a cli build on top of python/perl bindings (specially python) .. .for this jira i would just create a small tool in c that would just run a single command given as input (very basic ) ... 

> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>             Fix For: 3.2.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.

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


[jira] Updated: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt updated ZOOKEEPER-364:
-----------------------------------

    Fix Version/s:     (was: 3.2.0)
                   3.3.0

not a blocker for 3.2, moving to 3.3

> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>            Assignee: Patrick Hunt
>             Fix For: 3.3.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.

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


[jira] Assigned: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt reassigned ZOOKEEPER-364:
--------------------------------------

    Assignee: Patrick Hunt

> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>            Assignee: Patrick Hunt
>             Fix For: 3.2.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.

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


[jira] Updated: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mahadev konar updated ZOOKEEPER-364:
------------------------------------

    Description: currently we have a shell based interface for zookeeper (which again isnt well published). we should have a wee published cli based interface for zookeeper.  (was: currently we have a shell based interface for zookeeper (which again isnt well published). we should have a cli based interface for zookeeper.)

> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>             Fix For: 3.2.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a wee published cli based interface for zookeeper.

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


[jira] Issue Comment Edited: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696193#action_12696193 ] 

Mahadev konar edited comment on ZOOKEEPER-364 at 4/6/09 11:01 AM:
------------------------------------------------------------------

chris,
 I think it would be a good to have the perl module as part of Zookeeper contrib package. also it would be great to have a python bindings as well. it would be great to have a  cli built on top of python/perl bindings (especially python) .. .for this jira i would just create a small tool in c that would run a single command given as input (very basic ) ... 

      was (Author: mahadev):
    chris,
 I think it would be a good addition to have the perl module as part of Zookeeper contrib package. also it would be great to have a python bindings as well. It would be great to have a cli build on top of python/perl bindings (specially python) .. .for this jira i would just create a small tool in c that would just run a single command given as input (very basic ) ... 
  
> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>             Fix For: 3.2.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.

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


[jira] Commented: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Vegard B. Havdal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696002#action_12696002 ] 

Vegard B. Havdal commented on ZOOKEEPER-364:
--------------------------------------------

Possible improvements: 

Default host list to localhost:2181 when not given. 

Don't print a ton of debug, it looks like both cli_mt and zkCli.sh does this. Make a simple ls that lists subnodes one line at a time and a simple cat that lists only the node content, simple put etc. 

Shell with gnu readline capabilities and tab completion on node names would be a big improvement of usability during testing and debugging.  



> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>             Fix For: 3.2.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.

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


[jira] Updated: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mahadev konar updated ZOOKEEPER-364:
------------------------------------

    Description: currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.  (was: currently we have a shell based interface for zookeeper (which again isnt well published). we should have a wee published cli based interface for zookeeper.)

> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>             Fix For: 3.2.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.

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


[jira] Commented: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Chris Darroch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695668#action_12695668 ] 

Chris Darroch commented on ZOOKEEPER-364:
-----------------------------------------

Just FYI on the Perl side of things, CPAN is just a distribution channel -- the Perl module could easily be donated to the ASF and shipped as part of ZooKeeper, if there was interest.  Since Perl users tend to look at CPAN first, though, I wanted to put it there as well.  Things like mod_perl are generally available from both apache.org and cpan.org but maintained by the ASF.

Since most Linux/Unix folks will have Perl installed by default -- and Net::ZooKeeper really is only going to be simple to build on Linux/Unix anyway, because of the pthread requirement in the C API -- it's not hard to build a command-line interface; in fact, pretty simple.  Ephemerals, sequences, watches, and ACLs all are supported by the module.

That said, personally, I think lots of people will want a Python binding as well -- I just happened to need a Perl one first.  I caution that building it took more of my time than I expected; getting things like watches to work took a number of tries.  Because the multi-threaded C API runs two private threads in the background to handle IO (especially pings), you can't allow them to just arbitrarily make callbacks upon a watch event notification into Perl code -- that could fry the interpreter's state over in the "main" thread.  And you want to be sure that if the user decides to abandon some higher-level object that represents the watch (e.g., lets it go out of scope before the event notification occurs) then when the watch event does come in you haven't thrown away the private structure the callback is expecting to update.

There may be a niftier way to handle this with Python since Python supports threading better than Perl 5.x, by using the single-threaded stub adapter and doing all the calls to zookeeper_interest(), zookeeper_process(), etc. from the Python module, i.e., implementing the event loops in Python threads spawned by the module.  Still, it's not a cakewalk, I suspect.

(I was kidding about the Parrot implementation, but I'm also intrigued by the possibility that 5 years from now these sorts of conversations might be moot, if one could write a module in Parrot code that implemented the event loop and was then usable with Parrot-compiled versions of Python, Ruby, Perl, etc.  When time permits (ha!) I've been meaning to pull down Parrot 1.0 and peek at its concurrency and extension mechanisms.)

> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>             Fix For: 3.2.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.

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


[jira] Commented: (ZOOKEEPER-364) command line interface for zookeeper.

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695515#action_12695515 ] 

Patrick Hunt commented on ZOOKEEPER-364:
----------------------------------------

ZOOKEEPER-36 allows for REST based tools to be developed. however this is implemented
as a proxy, rather than a core part of the server. so I don't think we should rely on rest for
implementing clients (at least default CLI), even though things like python work really well (there's an example tree dumper as part of 36)

Also implementing in Java seems to result in significant overhead - ie starting a jvm for each command execution.

Perhaps C? Similar to the cli.c we currently have, but a set of command line tools rather than a 
shell. I'm not sure c would be my first choice, but it would be nice from the perspective of
exercising/testing our c binding.

Perhaps Perl? Chris has done a great job with the perl binding... however that would put
a requirement on external toolset not shipped with the release (cpan).

Perhaps some other lang, like python? Basically this forces us to implement python bindings
on top of the c intf. So the benefits of exercising c, plus we get python binding, plus the
benefits of implementing the commands using a scripting lang?


> command line interface for zookeeper.
> -------------------------------------
>
>                 Key: ZOOKEEPER-364
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-364
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.0.0, 3.0.1, 3.1.0, 3.1.1
>            Reporter: Mahadev konar
>             Fix For: 3.2.0
>
>
> currently we have a shell based interface for zookeeper (which again isnt well published). we should have a well published cli based interface for zookeeper.

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