Shutting Down

Shutting Down

You exit the shell by typing the exit command.

hbase> exit
Stopping HBase

To stop HBase, browse to the HBase home folder and type the following command.

Stopping HBase Using Java API
package com.ashok.hbase;


import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.client.HBaseAdmin;

 * @author ashok.mariyala
public class ShutDownHbase{
   public static void main(String args[])throws IOException {

      Configuration conf = HBaseConfiguration.create();

      HBaseAdmin admin = new HBaseAdmin(conf);

      System.out.println("Shutting down HBase Successfully");

Shutting Down
Scroll to top