Check the service status for Hadoop HDFS / HBase / OpenTSDB

By |2019-03-22T10:00:48+00:00March 22nd, 2019|Hbase, HDFS, Infrastructure, OpenTSDB|

To execute these procedures described in this page is required to be connected to *dev* or *prod* through *vnc*. ## Check Hadoop HDFS Status Visit the URL: http://192.168.30.81:50070/dfshealth.html Restart this service may corrupt the HBase data. ## Check HBase Status Visit: http://192.168.30.83:16010/master-status The URL above must show at least one *Region Server*. If the page [...]

Hbase tables backup

By |2018-07-26T13:39:50+00:00November 28th, 2016|Hbase|

Here is an sample for backup hbase tables. In this example we are exporting OpenTSDB tables. First it's necessary to export tables do the HDFS and then execute -get to save the files in the local system. #!/bin/bash DATAREF=`date +"%Y-%m-%d"` BKPDIR=/backup/$DATAREF mkdir $BKPDIR sudo -u hdfs hadoop dfs -rm -f -r /dump-tsdb sudo -u [...]

Cleaning OpenTSDB schema on Hbase (normal and crash situations)

By |2018-07-26T13:39:50+00:00November 25th, 2016|Hbase, Infrastructure|

Suppose that for any reason you need to clean the OpenTSDB schema. There is an easy way, you can do: $ hbase shell hbase(main):001:0> disable 'tsdb' hbase(main):002:0> disable 'tsdb-meta' hbase(main):003:0> disable 'tsdb-tree' hbase(main):004:0> disable 'tsdb-uid' hbase(main):005:0> drop 'tsdb' hbase(main):006:0> drop 'tsdb-meta' hbase(main):007:0> drop 'tsdb-tree' hbase(main):008:0> drop 'tsdb-uid' Ok, no problem. Just 'disable' and then [...]

Go to Top