FAQ
Hi,
I am creating 3 zookeper servers using package.
I get the following error:
  -> Command 'ZkStartPreservingDatastore' failed for service 'zookeeper1'
  -> Supervisor returned FATAL. Please check the role log file, stderr, or
stdout.
Any help is appreciated.

I followed the below steps: (Am i missing any step?!)
# yum install zookeeper
# yum install zookeeper-server

On <server-1>:
# service zookeeper-server init --myid=1

On <server-2>:
# service zookeeper-server init --myid=2

On <server-3>:
# service zookeeper-server init --myid=3

All Nodes:
# vim /etc/zookeeper/conf/zoo.cfg
Adding the below lines in the zoo.cfg file:
# Machines in the ensemble
server.1=<server-1>:2888:3888
server.2=<server-2>:2888:3888
server.3= <server-3>:2888:3888

All Nodes:
# service zookeeper-server start

Thanks,
Puneetha

To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Search Discussions

  • Harsh J at Sep 3, 2013 at 5:46 am
    You're mixing two different approaches together. If you are using CM,
    doing all those local commands is unnecessary as CM takes care of it
    for you, and is therefore the source of your problem.

    Please stick with one approach - use CM or run local commands/services
    via packages. If you follow a single proper install guide, you
    wouldn't run into such a confusion:
    http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM4Ent/latest/Cloudera-Manager-Installation-Guide/Cloudera-Manager-Installation-Guide.html

    To resolve your situation, please remove all data under all ZK
    machine's dataDir (typically /var/lib/zookeeper), and remove all
    "zookeeper-server" named packages, and head back to CM -> ZK ->
    Actions button -> Click "Initialize". After the initialization
    completes, start ZK.
    On Tue, Sep 3, 2013 at 11:09 AM, wrote:
    Hi,
    I am creating 3 zookeper servers using package.
    I get the following error:
    -> Command 'ZkStartPreservingDatastore' failed for service 'zookeeper1'
    -> Supervisor returned FATAL. Please check the role log file, stderr, or
    stdout.
    Any help is appreciated.

    I followed the below steps: (Am i missing any step?!)
    # yum install zookeeper
    # yum install zookeeper-server

    On <server-1>:
    # service zookeeper-server init --myid=1

    On <server-2>:
    # service zookeeper-server init --myid=2

    On <server-3>:
    # service zookeeper-server init --myid=3

    All Nodes:
    # vim /etc/zookeeper/conf/zoo.cfg
    Adding the below lines in the zoo.cfg file:
    # Machines in the ensemble
    server.1=<server-1>:2888:3888
    server.2=<server-2>:2888:3888
    server.3= <server-3>:2888:3888

    All Nodes:
    # service zookeeper-server start

    Thanks,
    Puneetha

    To unsubscribe from this group and stop receiving emails from it, send an
    email to scm-users+unsubscribe@cloudera.org.


    --
    Harsh J

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Puneethabm at Sep 8, 2013 at 7:42 am
    Hi Harsh,
    That solved my problem.

    Thanks,
    Puneetha

    On Tuesday, September 3, 2013 11:09:17 AM UTC+5:30, punee...@gmail.com
    wrote:
    Hi,
    I am creating 3 zookeper servers using package.
    I get the following error:
    -> Command 'ZkStartPreservingDatastore' failed for service 'zookeeper1'
    -> Supervisor returned FATAL. Please check the role log file, stderr, or
    stdout.
    Any help is appreciated.

    I followed the below steps: (Am i missing any step?!)
    # yum install zookeeper
    # yum install zookeeper-server

    On <server-1>:
    # service zookeeper-server init --myid=1

    On <server-2>:
    # service zookeeper-server init --myid=2

    On <server-3>:
    # service zookeeper-server init --myid=3

    All Nodes:
    # vim /etc/zookeeper/conf/zoo.cfg
    Adding the below lines in the zoo.cfg file:
    # Machines in the ensemble
    server.1=<server-1>:2888:3888
    server.2=<server-2>:2888:3888
    server.3= <server-3>:2888:3888

    All Nodes:
    # service zookeeper-server start

    Thanks,
    Puneetha
    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedSep 3, '13 at 5:39a
activeSep 8, '13 at 7:42a
posts3
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Puneethabm: 2 posts Harsh J: 1 post

People

Translate

site design / logo © 2022 Grokbase