Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HBase doesn't start when Sandbox is started under Docker on Mac

Re: HBase doesn't start when Sandbox is started under Docker on Mac

New Contributor

So no one is running into these type of issues on Mac?

Re: HBase doesn't start when Sandbox is started under Docker on Mac

Seems to be FQDN issue. Can you provide following information from HBASE hosts:

# hostname

# hostname -f

# cat /etc/hosts

Re: HBase doesn't start when Sandbox is started under Docker on Mac

New Contributor

[root@sandbox ~]# hostname

sandbox.hortonworks.com

[root@sandbox ~]# hostname -f

sandbox.hortonworks.com

[root@sandbox ~]# cat /etc/hosts

127.0.0.1localhost

::1localhost ip6-localhost ip6-loopback

fe00::0ip6-localnet

ff00::0ip6-mcastprefix

ff02::1ip6-allnodes

ff02::2ip6-allrouters

172.17.0.2sandbox.hortonworks.com I have tried removing all entries except 127.0.0.1 localhost as suggested by Ankit, but that didn't work either.

Re: HBase doesn't start when Sandbox is started under Docker on Mac

New Contributor

I have the same issue on MAC with docker image, I have posted the question here, there hasn't been any answers yet. Were you able to resolve the issue?

Re: HBase doesn't start when Sandbox is started under Docker on Mac

New Contributor

Nope, but Michael Young's response looks promising. Please try & let me know if it works for you -:) Thanks.

Re: HBase doesn't start when Sandbox is started under Docker on Mac

@Jay Ch

How much memory have you allocated to your Docker instance on the Mac? I usually allocate at least 10GB of memory, sometimes 12GB.

12049-screen-shot-2017-02-02-at-75202-pm.png

Re: HBase doesn't start when Sandbox is started under Docker on Mac

New Contributor

Thanks for the response Michael. I only have 8 GB. I just allocated 4 GB and tested it, same issue. I'll give it 6 GB and post the result shortly. It strange, on my Linux box it runs absolutely fine with default settings

Re: HBase doesn't start when Sandbox is started under Docker on Mac

New Contributor

Update: 6 GB with 3 CPU cores seemed to work the fist time around. It's gone back to complaining again:

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff; min-height: 13.0px} span.s1 {font-variant-ligatures: no-common-ligatures}

[root@sandbox ~]# hbase shell

HBase Shell; enter 'help<RETURN>' for list of supported commands.

Type "exit<RETURN>" to leave the HBase Shell

Version 1.1.2.2.5.0.0-1245, r53538b8ab6749cbb6fdc0fe448b89aa82495fb3f, Fri Aug 26 01:32:27 UTC 2016

hbase(main):001:0> list

TABLE

ATLAS_ENTITY_AUDIT_EVENTS

atlas_titan

iemployee

3 row(s) in 1.3890 seconds

=> ["ATLAS_ENTITY_AUDIT_EVENTS", "atlas_titan", "iemployee"]

hbase(main):002:0> list

TABLE

ERROR: Can't get master address from ZooKeeper; znode data == null

Here is some help for this command:

List all tables in hbase. Optional regular expression parameter could

be used to filter the output. Examples:

hbase> list

hbase> list 'abc.*'

hbase> list 'ns:abc.*'

hbase> list 'ns:.*'

Re: HBase doesn't start when Sandbox is started under Docker on Mac

@Gogreen withTech

The problem you are experiencing is the Sandbox requires a minimum of 8GB of ram, but you aren't able to give it 8GB. Allocating 6GB works at first and later fails because you do not have enough memory. As the processes all start up and begin to use memory, you are likely running out of memory. It's best if your computer has 12-16GB of memory so that you can allocate 8-10GB to the Sandbox.

The only thing I can recommend is to stop and disable any services that you don't need to use. That might allow you to get HBase running.

Highlighted

Re: HBase doesn't start when Sandbox is started under Docker on Mac

New Contributor

I had to up my docker memory to 12 GB in order to run HBase along with most other services. I was able to get away with 10 GB, running only HBase, HDFS, and Zookeeper.

Don't have an account?
Coming from Hortonworks? Activate your account here