I’ve just thrown HBase onto my Hadoop stack and immediately ran into troubles with Zookeeper:

Could not start ZK at requested port of 2181

Had I bothered checking the docs, I’d have found out that Hbase runs in two modes – Standalone and Distributed. The standalone mode is, quite logically, the default one. In such a case HBase runs its own local Zookeeper occupying the default port 2181.

To avoid the error above, HBase needs to be instructed to start in (at least) a pseudo distributed mode. In the configuration directory ($HBASE_HOME/conf) modify or create a file called hbase-site.xml. Add (or update) the configuration section:

<configuration>
  <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
  </property>
</configuration>

Distributed mode makes HBase run against an existing Hadoop instance and prevents it from starting its own Zookeeper.

Categories: Uncategorized

Tomas Zezula

Hello! I'm a technology enthusiast with a knack for solving problems and a passion for making complex concepts accessible. My journey spans across software development, project management, and technical writing. I specialise in transforming rough sketches of ideas to fully launched products, all the while breaking down complex processes into understandable language. I believe a well-designed software development process is key to driving business growth. My focus as a leader and technical writer aims to bridge the tech-business divide, ensuring that intricate concepts are available and understandable to all. As a consultant, I'm eager to bring my versatile skills and extensive experience to help businesses navigate their software integration needs. Whether you're seeking bespoke software solutions, well-coordinated product launches, or easily digestible tech content, I'm here to make it happen. Ready to turn your vision into reality? Let's connect and explore the possibilities together.