Running HBase programs

HBase programs can be ran directly from your Eclipse development environment.

About this task

You can use the HBase module through Jaql, write and run Java™ programs that use the HBase API, and run simple queries with the HBase shell.

To run the HBase shell as the user that registered the InfoSphere BigInsights server:
  • Ensure that the user of the operating system from which you start the HBase shell is the same as the BigInsights user.
  • Configure the operating system user ID to run on behalf of the BigInsights user. For more information, see Configuring proxy users for your Hadoop File System.

Procedure

  1. Write your HBase Java application in the Java editor.
  2. Right-click the Java main class for the program that you want to run. Select Run As > Run Configurations.
  3. Select BigInsights Java Programs and create a configuration.
  4. Complete the fields for the project name and the main class.
  5. Specify the InfoSphere BigInsights server where the program runs.
  6. Click Run. A new console window opens that shows the output of the program.