Here i have 2 Region server, In which i have created 2 metrics named below with its UID( JAVA byte array).
metrics sys.rack.1: [0, 1, 5]
metrics sys.rack.2: [0, 1, 6]
I need to Pre-split the HBASE "TSDB" table accordingly to share load among the 2 Region servers. http://opentsdb.net/docs/build/html/user_guide/writing.html#pre-split-hbase-regions
HBase will automatically split regions.I want to do the behavior myself by splitting it over the regions.
I have tried but, It initially targets only one regions to write the metrics.At what range could i split the regions ? can any one please help me resolve this.
Edited
Data will be like sys.rack.1 host=20 sys.rack.2 host=18
In tsdb first 3 bytes of metrics are encode as byte array(0,1,5 fr metric 1 and 0,1,6 fr metric2) and used as row key. In HBase we have encoded values with column family and Rowkey.