hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis.gospodne...@gmail.com>
Subject Re: Programmatic HBase version detection/extraction
Date Wed, 12 Nov 2014 22:46:12 GMT
Hi,

Thanks Gary, I think this is exactly what I was after!
Btw. might be nice to expose this via JMX, too, for apps who needs this
info but are not in process.

Otis
--
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/


On Wed, Nov 12, 2014 at 4:44 PM, Gary Helmling <ghelmling@gmail.com> wrote:

> Yes, you can use the org.apache.hadoop.hbase.util.VersionInfo class.
>
> From java code, you can use VersionInfo.getVersion().  From shell
> scripts, you can just run "hbase version" and parse the output.
>
> On Wed, Nov 12, 2014 at 1:37 PM, Otis Gospodnetic
> <otis.gospodnetic@gmail.com> wrote:
> > Hi,
> >
> > Is there a way to detect which version of HBase one is running?
> > Is there an API for that, or a constant with this value, or maybe an
> MBean
> > or some other way to get to this info?
> >
> > Thanks,
> > Otis
> > --
> > Monitoring * Alerting * Anomaly Detection * Centralized Log Management
> > Solr & Elasticsearch Support * http://sematext.com/
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message