Query data like opentsdb

2018-02-19 Thread kitex101
I have key design like:byte[] rowKey = =Bytes.add(Bytes.toBytes("3"),Bytes.toBytes(customer_id),Bytes.toBytes(timestamp)); customer_id and timestamp are long type. As opentsdb uses:[…]I would like to filter my key by customer_id and timestamp. How do I do that?I have tried using prefixfilter.

Re: How to get string from hbase composite key?

2018-02-19 Thread kitex101
So, it would be like manually getting 4 byte. Actually they are long. -- Sent from: http://apache-hbase.679495.n3.nabble.com/HBase-User-f4020416.html

How to get string from hbase composite key?

2018-02-17 Thread kitex101
I have key in following format: byte[] rowKey = =Bytes.add(Bytes.toBytes("3"),Bytes.toBytes(98),Bytes.toBytes(1211)); It is stored as byte array. How to decode it when using java? Bytes.toString(CellUtil.cloneRow(cell)) results in a�~�� -- Sent from:

Re: [ANNOUNCE] Apache Phoenix 5.0.0-alpha released

2018-02-17 Thread kitex101
Congratulations -- Sent from: http://apache-hbase.679495.n3.nabble.com/HBase-User-f4020416.html