Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to Start HBase from Java API

How to Start HBase from Java API

New Contributor

Hello Geeks,

 

 I have been a little bit new with HBase, i was wondering if there is a way to start the Hbase from Java API,

i know how to make shutdown by using shutdown() function from HBaseAdmin, but i couldnt find an API way to start it back.

 

 

Regards,

Maylo

3 REPLIES 3

Re: How to Start HBase from Java API

You'd need to be running HBase for the API to connect to, so. If you'd like
to start the service, you could use the Cloudera Manager API

Regards,
Gautam Gopalakrishnan
Highlighted

Re: How to Start HBase from Java API

New Contributor

Hi,

 

  Thanks alot. that's actually make sence.

 

I have tried to look for it inside Cloudera Manager Java API but i coudlnt find it, Could you please guide me where should i be looking (which Class/Method to use)?

 

 

Thanks a lot in advance. Apprecait alot your support.

 

Regards,

Maylo

Re: How to Start HBase from Java API

This is the REST API to start a service:

http://cloudera.github.io/cm_api/apidocs/v10/path__clusters_-clusterName-_services_-serviceName-_com...

 

There should a similar way to do it via the Java API, please have a look here:

http://cloudera.github.io/cm_api/javadoc/5.4.0/index.html

Regards,
Gautam Gopalakrishnan