
      echo "Format Zookeeper for Fast failover.."
      $HADOOP_PREFIX/bin/hdfs zkfc -formatZK
    fi
    $HADOOP_PREFIX/sbin/hadoop-daemon.sh start zkfc
    $HADOOP_PREFIX/bin/hdfs namenode
    ;;
  standby)
    if [[ ! -a /data/hdfs/nn/current/VERSION ]]; then
      echo "Bootstrap Standby Namenode.."
      $HADOOP_PREFIX/bin/hdfs namenode -bootstrapStandby
    fi
    $HADOOP_PREFIX/sbin/hadoop-daemon.sh start zkfc
    $HADOOP_PREFIX/bin/hdfs namenode