Command Line Installation
Also available as:
PDF
loading table of contents...

Start ZooKeeper

To install and configure HBase and other Hadoop ecosystem components, you must start the ZooKeeper service and the ZKFC:

sudo -E -u zookeeper bash -c "export ZOOCFGDIR=$ZOOKEEPER_CONF_DIR ; export ZOOCFG=zoo.cfg;
      source $ZOOKEEPER_CONF_DIR/zookeeper-env.sh ; $ZOOKEEPER_HOME/bin/zkServer.sh
    start"

For example:

su - zookeeper -c "export ZOOCFGDIR=/usr/hdf/current/zookeeper-server/conf ; export ZOOCFG=zoo.cfg; source /usr/hdf/current/zookeeper-server/conf/zookeeper-env.sh ; /usr/hdf/current/zookeeper-server/bin/zkServer.sh start"

su -l hdfs -c "/usr/hdf/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh start zkfc"