Basic operations of HBase

1. The tables and data in the following relational databases are required to be converted into tables suitable for HBase storage and inserted into the data:

Student table (Student) (excluding the last column)

Student ID (S_No)

Name (S_Name)

Gender (S_Sex)

Age (S_Age)

course

2015001

Zhangsan

male

23

 

2015003

Mary

female

22

 

2015003

Lysis

male

24

Math 85

 

2. Use the HBase Shell commands provided by Hadoop to accomplish the same task:

  • List information about all HBase tables; list
  • Print out all the recorded data of the student table in the terminal;
  •  

  • Add a course column family to the student table;
  •  

  • Add a math column to the course column family and register a grade of 85;
  •  

  • delete the course column;
  •  

  • The number of rows in the statistics table; count 's1'
  •  

  • Clear all record data of the specified table; truncate 's1'

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326661637&siteId=291194637