retrieve rowkey from hbase through tsdb functions

31 views
Skip to first unread message

Vyshali N

unread,
Feb 3, 2018, 1:14:20 PM2/3/18
to OpenTSDB
Hi,

I want to delete a metric from tsdb using the functions of tsdb library.Found that there is a delete function in TSDB class which requires parameters like table,key,column family and qualifiers.
I need some information on how list of rowkeys can be retrieved for a particular metric provided the metricname,timestamp and tags are present.
The search and lookup functions don't provide much information regarding this.
So,Help with the identification of required function.

Regards
Vyshali

ManOLamancha

unread,
May 21, 2018, 8:30:12 PM5/21/18
to OpenTSDB
Hi, take a look at https://github.com/OpenTSDB/opentsdb/blob/master/src/core/TSDB.java#L963. This entire function is how we generate the row keys for writing. You can look at that to figure out how to add salting to the row key if necessary for your use case and how to set the timestamp. 
Reply all
Reply to author
Forward
0 new messages