• Online, Self-Paced
Course Description

Apache HBase is written in Java and therefore there are multiple ways to access HBase using various clients. One client is the HBase shell, which is a command-line utility that provides client and administrative operations. HBase also provides access through the use of a Java client API to provide basic and advanced client and administrative operations. This course will discuss and demonstrate the various tasks you can accomplish using the shell and Java client API, including creating tables, reading and writing data, and updating and deleting.

Learning Objectives

Table Creation in the Shell

  • start the course
  • create a table using the shell in HBase
  • enable, disable, and drop a table using the shell in HBase
  • alter an HBase table's properties

Data Management in the Shell

  • add data to an HBase table using the put shell command
  • use the scan and get shell commands to retrieve data from an HBase table
  • delete data from an HBase table
  • increment the counter using the incr shell command and get the counter value using get_counter

Insert Data Using Java Client API

  • establish a connection to HBase using a Java API with the HConnection, HTable, and HTablePool
  • create tables using the client Java API
  • create a Put class instance with a rowkey to store data in an HBase table
  • add data to an HBase table using the add() method in the Put instance
  • specify a timestamp within a Put constructor to specify different versions
  • use the get() and has() methods to check the existence of a column in an HBase table

Get Data Using Java Client API

  • use the Get class to read data from an HBase table
  • use the addFamily() and addColumn () methods of the Get class
  • use the setTimeRange(), setTimeStamp(), and setMaxVersions() methods of the Get class to retrieve versions of columns
  • use the getValue() and getColumnLast() to retrieve specific values from cells in an HBase table
  • use List with the Get class to return a list of values in a batch

Scan Data Using Java Client API

  • use Scan() to read an entire HBase table
  • use Scan() to read a table starting at a specific row or scan a range of rows from an HBase table
  • use different methods to further narrow search results from a Scan constructor
  • use the getScanner() methods to get the instance of a scan and browse the results
  • use the ResultScanner class to retrieve the rows from the scanner

Delete and Update Data Using Java Client

  • update data in an HBase table using the Put instance
  • delete data from an HBase table

Practice: Manage Data in an HBase Table

  • create an HBase table and insert, update, delete, and retrieve data using the Java Client API

Framework Connections

The materials within this course focus on the Knowledge Skills and Abilities (KSAs) identified within the Specialty Areas listed below. Click to view Specialty Area details within the interactive National Cybersecurity Workforce Framework.