bummer, donno what to say, what version of python are you using? works for me in 2.5 and 2.6 (linux jaunty)

$ ls
LICENSE.txt README.html start.py start.pyc stop.py stop.pyc test3 zoocfg.py zoocfg.pyc ptest README.textile start.py.bak start.tmpl stop.py.bak stop.tmpl zkconf.py zoocfg.py.bak zoocfg.tmpl


$ python2.5 zkconf.py ../t/zookeeper-3.2.1 ptest
$ ls ptest/
cli.sh localhost:2181 localhost:2182 localhost:2183 log4j.jar log4j.properties start.sh status.sh stop.sh zookeeper.jar
$ rm -fr ptest
$ python2.6 zkconf.py ../t/zookeeper-3.2.1 ptest
$ ls ptest/
cli.sh localhost:2181 localhost:2182 localhost:2183 log4j.jar log4j.properties start.sh status.sh stop.sh zookeeper.jar


Perhaps you can try something like:

PYTHONPATH=. python zkconf.py ../t/zookeeper-3.2.1 ptest

that help at all?

Patrick

Mark Vigeant wrote:
Before I make the Jira, I am trying to go with Ted's advice to use the python script.
Unfortunately I'm relatively unfamiliar with python so I'm having trouble 
running it.

When I execute "Python zkconf.py" on the command line it tells me:
Traceback (most recent call last):
   File "zkconf.py", line 27, in <module>
        from zoocfg import zoocfg
ImportError: No module named zoocfg

The same error comes when I try to call zkcfg.py from the python interface and 
when I try running
Python zkconf.py -help /home/hadoop/zookeeper-3.2.1/ /home/hadoop (as I 
gathered from the Usage). Any suggestions?

Also, I've been using zookeeper 3.2.1
-----Original Message-----
From: Ted Dunning [mailto:ted.dunn...@gmail.com] Sent: Thursday, October 22, 2009 4:33 PM
To: zookeeper-user@hadoop.apache.org
Subject: Re: Cluster Configuration Issues

Try Patrick's utility for creating the config files and compare the result
to your hand-made files.

On Thu, Oct 22, 2009 at 1:04 PM, Mark Vigeant
<mark.vige...@riskmetrics.com>wrote:

The file contains the number 1 and nothing else. My other node has the
number 2 (I only have 2 machines right now, I know it makes more sense to
run an odd number of zookeeper nodes but I just want to make sure it works
first). Any suggestions?




Reply via email to