Thanks for your help. The missing file issue is resolved.
I was confused by how to start zookeeper because a firewall is blocking
connections between nodes. The odd thing is hadoop can run on its own with
the configured iptables but doesn't work with zookeeper for some reason. The
problem here is I can't turn off the firewall and need to configure the
firewall so that zookeeper can work correctly.
I'm going to work on the iptables to open connections needed by zookeeper.
If any one knows of a way to do this or even just a link to configuring an
iptable with zookeeper in mind, I'd appreciate it.
Thanks again for the help.
On 21 June 2010 20:56, Joe Zou <j...@hz.webex.com> wrote:
> You miss the file.
> the Caused by: java.lang.IllegalArgumentException: /var/zookeeper/myid file
> is missing
> Joe Zou
> 发件人: Erik Test [mailto:erik.shi...@gmail.com]
> 发送时间: Tuesday, June 22, 2010 3:05 AM
> 收件人: email@example.com
> 主题: Starting zookeeper in replicated mode
> Hi All,
> I'm having a problem with installing zookeeper on a cluster with 6 nodes in
> replicated mode. I was able to install and run zookeeper in standalone mode
> but I'm unable to run zookeeper in replicated mode.
> I've added a list of servers in zoo.cfg as suggested by the ZooKeeper
> Getting Started Guide but I get these logs displayed to screen:
> *[r...@master1 bin]# ./zkServer.sh start
> JMX enabled by default
> Using config: /root/zookeeper-3.2.2/bin/../conf/zoo.cfg
> Starting zookeeper ...
> [r...@master1 bin]# 2010-06-21 12:25:23,738 - INFO
> [main:quorumpeercon...@80] - Reading configuration from:
> 2010-06-21 12:25:23,743 - INFO [main:quorumpeercon...@232] - Defaulting
> majority quorums
> 2010-06-21 12:25:23,745 - FATAL [main:quorumpeerm...@82] - Invalid config,
> exiting abnormally
> org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error
> processing /root/zookeeper-3.2.2/bin/../conf/zoo.cfg
> Caused by: java.lang.IllegalArgumentException: /var/zookeeper/myid file is
> ... 2 more
> Invalid config, exiting abnormally*
> And here is my config file:
> # The number of milliseconds of each tick
> # The number of ticks that the initial
> # synchronization phase can take
> # The number of ticks that can pass between
> # sending a request and getting an acknowledgement
> # the directory where the snapshot is stored.
> # the port at which the clients will connect
> I'm a little confused as to why this doesn't work and I haven't had any
> finding answers to some questions I have.
> Am I supposed to have an instance of ZooKeeper on each node started before
> running in replication mode? Should I have each node that will be running
> listed in the config file? Should I be using an IP address to point to a
> server instead of a hostname?
> Thanks for your time.