Nonsense first, this is more than half a month ago encountered the problem, while the historical record is still available to write down

Background: Three Aliyun Ubuntu servers, Hadoop (2.6.5), Zookeeper (3.4.10), HBase (1.2.6)

Problem: 1. Hadoop, Zookeeper, and HBase start in sequence. However, an error occurs when you run any command in HBase Shell.

ERROR: org, apache hadoop. Hbase. PleaseHoldException: Master is initializing or ERROR: Can't get master address from ZooKeeper; znode data == nullCopy the code

2. When stop-hbase.sh is used, HRegionserver cannot be shut down. 3

Solution: Although the problem is reflected in HBase shell, the essential problem is that the Hadoop cluster is not properly connected. 1. The Ali Cloud server has a security group policy, and the three machines must communicate with each other in the outbound and inbound directions

Master Slave1 Slave2
Master Network IP IP networks outside IP networks outside
Slave1 IP networks outside Network IP Network IP
Slave2 IP networks outside Network IP Network IP