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 <ghelml...@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.gospodne...@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/ >