Course Details

Previous Page


Apache HBase Fundamentals: Access Data through the Shell and Client API


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number



Overview/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.

Target Audience
Administrators and developers who need experience using HBase

Prerequisites
None

Expected Duration (hours)
2.1

Lesson Objectives

Apache HBase Fundamentals: Access Data through the Shell and Client API

  • 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
  • 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
  • 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
  • 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
  • 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
  • update data in an HBase table using the Put instance
  • delete data from an HBase table
  • create an HBase table and insert, update, delete, and retrieve data using the Java Client API
  • Course Number:
    df_hbas_a02_it_enus