O'Reilly logo

Apache HBase Primer by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Deepak Vohra 2016

Deepak Vohra, Apache HBase Primer, 10.1007/978-1-4842-2424-3_16

16. The HBaseAdmin Class

Deepak Vohra

(1)Apt 105, White Rock, British Columbia, Canada

The org.apache.hadoop.hbase.client.HBaseAdmin is a Java interface for managing the HBase database table metadata and also for general administrative functions. HBase is used to create, drop, list, enable, and disable tables. HBase is also used to add and drop column families. A HBaseAdmin instance may be created using one of the constructors HBaseAdmin(org.apache.hadoop.conf.Configuration c) or HBaseAdmin(HConnection connection).

HBaseConfiguration conf = new HBaseConfiguration();              conf.set("hbase.master","localhost:60000");              HBaseAdmin admin=new HBaseAdmin(conf);              

An HConnection

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required