Hi all, I am using Hadoop - 0.20.1 and HBASE - 0.20.
Currently, I am trying to retrieve and iterate through all the column values of a particular rowkey in an Hbase Table. But I am able to retrieve *only* the cell+value having the *latest Timestamp *. Eg: *hbase>create 'useractivity', 'pageviews' hbase>put 'useractivity', 'userid1', 'pageviews:uri', 'http://www.allaboutdata.net' hbase>put 'useractivity', 'userid1', 'pageviews:uri', 'http://www.yahoo.co.in'* *hbase>get 'useractivity', 'userid1' * is fetching only the "http://www.yahoo.co.in" column value as it has the latest timestamp. I wanted to view both the values in the column *uri*. I tried the same with the java API - Get as well as Scan. But still both of them gave me the same result with the column having value that was inserted the latest. I also read through some old archives and found I could setTimeRange on Get/Scan which is also not solving my problem. *get.setTimeRange(0,Long.MAXVALUE);* as in : *HTable table = new HTable(new HBaseConfiguration(), "useractivity"); Get get = new Get(Bytes.toBytes("userid1")); get.addFamily(Bytes.toBytes("pageviews")); get.setTimeRange(0,Long.MAXVALUE); Result result = table.get(get); byte[] value = result.getValue(Bytes.toBytes("pageviews"), Bytes.toBytes("uri")); System.out.println(Bytes.toString(value));* This is fetching me only the column value with the latest timestamp. I tried the same with Scan API. But I get the same result. *Could you please let me know how I can retrieve all column values of all timestamps of a particular rowkey??* Many Thanks, Narayanan
