Thomas Henson

  • Data Engineering Courses
    • Installing and Configuring Splunk
    • Implementing Neural Networks with TFLearn
    • Hortonworks Getting Started
    • Analyzing Machine Data with Splunk
    • Pig Latin Getting Started Course
    • HDFS Getting Started Course
    • Enterprise Skills in Hortonworks Data Platform
  • Pig Eval Series
  • About
  • Big Data Big Questions

HBase Error Solved – Error: Can’t get master address from ZooKeeper

September 11, 2017 by Thomas Henson 3 Comments

The inspiration for this post on the HBase Error “Error: Can’t get master address from ZooKeeper” came from my work on the HBase Creating a Table blog post. Here is the quick and easy way to check for this error.

Error: Can't get master address from ZooKeeper

Why Does This Always Happen?

When working in HBase it happens all the time and each time I spend too much time troubleshooting. It’s the “Error: Can’t get master address from ZooKeeper; znode data == null” error. Normally the first thing I do is look at the HBase configuration file or Google the error so see how to change the Zookeeper configurations. All these are good options but 9 times out of 10 it’s a simple answer I should check first.

The very first thing I should always do is check Ambari to ensure the services are running correctly and if not just restart. Especially when working in the sandbox or development environments that are not always up and running.


Checking Ambari

The first step should be to log into Ambari Server. If you aren’t familiar with Ambari it’s a Management portal for Hadoop and used in the Hortonworks Data Platform (HDP). Ambari allows administrators to install, manage and monitor Hadoop clusters with a simple Web interface. If you are using the sandbox or a default HDP deployment navigate to localhost:8080 in your browser.

After logging in check on the left side of the screen for HBase. Green means running and error free. Red means not running or errors present. Click on HBase to open up HBase configurations.

 

Error: Can't get master address from ZooKeeper

In the summary tab click on the HBase Master to drill down into the errors. In the above screen you can see my problem, the HBase Master has been stopped. You can click on the errors to see a more detail description of the errors. However in my case all these errors are present because the HBase Master in down.


For some reason every time I reboot the HDP cluster HBase has to be manually restarted. Of course I never remember that point hence why I’m writing this post. I figure if it’s something that happens to me it must be happening to others.

Error: Can't get master address from ZooKeeper

Solved Quick & Easy

Easy solution solved by just logging into the Ambari and rebooting the HBase services. Sounds simple but easily forgotten when the HBase shell still works. Once the services have been rebooted and are running look for the “Green”. If the HBase is stilling showing “Red” check other services that are related or jump right in and troubleshoot the Zookeeper instance. Check back later for a deep dive into ZooKeeper troubleshoot.

Error: Can't get master address from ZooKeeper

 

Filed Under: HBase Tagged With: Errors, HBase

Subscribe to Newsletter

Archives

  • February 2021 (2)
  • January 2021 (5)
  • May 2020 (1)
  • January 2020 (1)
  • November 2019 (1)
  • October 2019 (9)
  • July 2019 (7)
  • June 2019 (8)
  • May 2019 (4)
  • April 2019 (1)
  • February 2019 (1)
  • January 2019 (2)
  • September 2018 (1)
  • August 2018 (1)
  • July 2018 (3)
  • June 2018 (6)
  • May 2018 (5)
  • April 2018 (2)
  • March 2018 (1)
  • February 2018 (4)
  • January 2018 (6)
  • December 2017 (5)
  • November 2017 (5)
  • October 2017 (3)
  • September 2017 (6)
  • August 2017 (2)
  • July 2017 (6)
  • June 2017 (5)
  • May 2017 (6)
  • April 2017 (1)
  • March 2017 (2)
  • February 2017 (1)
  • January 2017 (1)
  • December 2016 (6)
  • November 2016 (6)
  • October 2016 (1)
  • September 2016 (1)
  • August 2016 (1)
  • July 2016 (1)
  • June 2016 (2)
  • March 2016 (1)
  • February 2016 (1)
  • January 2016 (1)
  • December 2015 (1)
  • November 2015 (1)
  • September 2015 (1)
  • August 2015 (1)
  • July 2015 (2)
  • June 2015 (1)
  • May 2015 (4)
  • April 2015 (2)
  • March 2015 (1)
  • February 2015 (5)
  • January 2015 (7)
  • December 2014 (3)
  • November 2014 (4)
  • October 2014 (1)
  • May 2014 (1)
  • March 2014 (3)
  • February 2014 (3)
  • January 2014 (1)
  • September 2013 (3)
  • October 2012 (1)
  • August 2012 (2)
  • May 2012 (1)
  • April 2012 (1)
  • February 2012 (2)
  • December 2011 (1)
  • September 2011 (2)

Tags

Agile AI Apache Pig Apache Pig Latin Apache Pig Tutorial ASP.NET AWS Big Data Big Data Big Questions Book Review Books Data Analytics Data Engineer Data Engineers Data Science Deep Learning DynamoDB Hadoop Hadoop Distributed File System Hadoop Pig HBase HDFS IoT Isilon Isilon Quick Tips Learn Hadoop Machine Learning Machine Learning Engineer Management Motivation MVC NoSQL OneFS Pig Latin Pluralsight Project Management Python Quick Tip quick tips Scrum Splunk Streaming Analytics Tensorflow Tutorial Unstructured Data

Follow me on Twitter

My Tweets

Recent Posts

  • Tips & Tricks for Studying Machine Learning Projects
  • Getting Started as Big Data Product Marketing Manager
  • What is a Chief Data Officer?
  • What is an Industrial IoT Engineer with Derek Morgan
  • Ultimate List of Tensorflow Resources for Machine Learning Engineers

Copyright © 2023 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in

 

Loading Comments...