Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper, mail # user - serverid null is not a number


Copy link to this message
-
Re: serverid null is not a number
Camille Fournier 2012-07-07, 15:59
Did you create and populate the myid file in the zookeeper data directory?
You need to have a file named myid containing 1, 2 or 3 depending on the
server. That file lives in the dataDir that your config file points at.

C

On Sat, Jul 7, 2012 at 10:40 AM, Pedro Costa <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I've 3 machines:
>
> helios-54.sophia.grid5000.fr
> genepi-15.grenoble.grid5000.fr
> chinqchint-25.lille.grid5000.fr
>
> where I installed Zookeeper.
>
> In one machine , in the zoo.conf I set the following servers:
>
> server.1=helios-54.sophia.grid5000.fr:2888:3888
> server.2=genepi-15.grenoble.grid5000.fr:2888:3888
> server.3=chinqchint-25.lille.grid5000.fr:2888:3888
>
> When I start zookeeper, I get the error:
>
> org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error
> processing /opt/zookeeper/bin/../conf/zoo.cfg
>         at
>
> org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:121)
>         at
>
> org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:101)
>         at
>
> org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
> Caused by: java.lang.IllegalArgumentException: serverid null is not a
> number
>         at
>
> org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:358)
>         at
>
> org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:117)
>         ... 2 more
> Invalid config, exiting abnormally
>
>
>
> Why I get this error?
>
>
> --
> Best regards,
>