1. HBase deployed successfully
The prerequisite for HBase deployment is the successful deployment of Hadoop!
2. Download the relevant package from the master node
Download hbase-2.2.6 and zookeeper-3.4.14 from the master node
. Download
$scp -r angel@master:/app/ hbase-2.2.6 /app
$scp -r angel@master: /app/zookeeper-3.4.14 /app
Note: The desktop node machine and the master do not have SSH to communicate, so you need to enter a password to access.
3. Modify environment variables and activate
Add at the end:
export HBASE_HOME=/app/hbase-2.2.6
export PATH=$PATH:$HBASE_HOME/bin
export ZOOKEEPER_HOME=/app/zookeeper-3.4.14
export PATH=$PATH:$ZOOKEEPER_HOME/bin
4. HBase Shell basic commands
5. Start the hbase shell
Note: Turn on the slave node (test machine)!
5.1 Create a score table
5.2 View the structure of the table
5.3 Add record
5.4 Meter reading record
5.5 Scan Record
5.6 FILTER filter scan records
5.6.1 Scan John's record
5.6.2 Scan the class value contains Clou's record
5.6.3 Scan the record beginning with 610
5.6.4 Only take out the first version of the first column in the key and only the key record.
5.6.5 Scan the records in the course of the column family with a score greater than or equal to 85
5.7 Delete record
5.8 Modify and delete table
(add column family)
(delete column family)
5.9 Delete table (disable+drop)