The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

HBase Forum

Error Starting zookeeper, setting relative path Resolves the issue.

  • #31378
    Jayashankar VS

    Just want to bring to your notice a issue with regard to starting zookeeper (/usr/lib/zookeeper/bin/ start /etc/zookeeper/conf/zoo.cfg)
    I am following the “Hadoop manual installation document”. Though in the beginning of the document under section “Define Directories for Ecosystem Components” the ZOOKEEPER_DATA_DIR is set to “/grid1/hadoop/zookeeper/data” in the later part of the document when the actual installation is happening the document only asks to change server.1, .2 and .3 parameters in zoo.cfg to reflect the zookeeper server. As a result the default setting for dataDir remains unchanged to /var/zookeeper/data as shown below.


    Now starting zookeeper throws below exception stating that it doesn’t have the permission to create directory, which is correct due to the fact that /var is under root hence using a relative path like this ‘dataDir=../zookeper/data/’ solved the problem other way would be to try starting zookeeper as sudo.

    This is a very small issue but still thought to give a heads-up.

    2013-08-12 10:22:24,011 – INFO [main:Environment@100] – Server environment:user.home=/home/zookeeper
    2013-08-12 10:22:24,011 – INFO [main:Environment@100] – Server environment:user.dir=/var/zookeeper/data/version-2
    2013-08-12 10:22:24,018 – ERROR [main:ZooKeeperServerMain@63] – Unexpected exception, exiting abnormally Unable to create data directory /var/zookeper/data/version-2
    at org.apache.zookeeper.server.persistence.FileTxnSnapLog.(
    at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(
    at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(
    at org.apache.zookeeper.server.ZooKeeperServerMain.main(
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(

  • Author
  • #31402
    Yi Zhang

    Hi Jay,

    Thanks for pointing out this error. We have informed our documentation team to change it.


The forum ‘HBase’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.