You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Upendra Yadav <up...@gmail.com> on 2014/02/26 19:23:10 UTC

How RowKey stored in HBase

My rowKey in this table is like : 1,MCA
2,BCA
3,Btech
4,Mtech
......
........
And when with shell i performing get/scan operation i got everything as
expected.
But with http://172.20.8.20:60010/table.jsp?name=StudentScoreCard
start key, end key showing totally different values as below.

Is HBase have any Hashing over rowKey prior to storing in HBase?
or rowKey is different than start-end keys.
If different then how read operation happening.
Table RegionsNameRegion ServerStart KeyEnd KeyRequests
StudentScoreCard,,1392921893610.5d84949f14e229b7b447e94987048356.
ceph-node1:60020 <http://ceph-node1:60030/>107467,C0
StudentScoreCard,107467,C,1392923722513.2db013447332d9062369834ddfa18ece.
hdfs-node1:60020 <http://hdfs-node1:60030/>107467,C127282,C0
StudentScoreCard,127282,C,1392923875308.0ae59175d16cfd6ee286c6e719a92eef.
hdfs-node2:60020 <http://hdfs-node2:60030/>127282,C1382020
StudentScoreCard,138202,1392923875308.470ff761dfe087afff4ea18e8f14cf2c.
ceph-node1:60020 <http://ceph-node1:60030/>138202155480,Mtech0
StudentScoreCard,155480,Mtech,1392916973764.d5b874390857cfd52c897f70955d87f3.
hdfs-node2:60020 <http://hdfs-node2:60030/>155480,Mtech196840
StudentScoreCard,19684,1392917518754.d3672432f3d5eaf80c056539836f088e.
admin-node:60020 <http://admin-node:60030/>1968423951,C0
StudentScoreCard,23951,C,1392917692998.2e1b2d2f9b27b537510774052273b2c3.
ceph-node2:60020 <http://ceph-node2:60030/>23951,C3008-0
StudentScoreCard,3008-,1392918303387.14a509c7456e7f6751b83f9d196c92ba.
hdfs-node3:60020 <http://hdfs-node3:60030/>3008-384810
StudentScoreCard,38481,1392918303387.1d11fc5885dacb60bd35bbb7dee30dba.
hdfs-node1:60020 <http://hdfs-node1:60030/>3848150151,Mtech0
StudentScoreCard,50151,Mtech,1392919343954.0eb53ed84097ecc9e887de4e7aac7a8f.
ceph-node2:60020 <http://ceph-node2:60030/>50151,Mtech554130
StudentScoreCard,55413,1392919343954.6a67804161b1685ce5cabd1359ea4f22.
hdfs-node1:60020 <http://hdfs-node1:60030/>554137015-0
StudentScoreCard,7015-,1392920506888.df5e4b4d2c538ce1141f5406a6ad6ccf.
ceph-node1:60020 <http://ceph-node1:60030/>7015-78041,C0
StudentScoreCard,78041,C,1392920649492.1ef2dec85ce4007ffe7f5efc56b2abd1.
hdfs-node2:60020 <http://hdfs-node2:60030/>78041,C84-0
StudentScoreCard,84-,1392920649492.2bf8779f89698dc0702df5676953d04a.
admin-node:60020 <http://admin-node:60030/>84-0

Re: How RowKey stored in HBase

Posted by Ted Yu <yu...@gmail.com>.
Please read http://hbase.apache.org/book.html#arch.catalog.meta

Read operation would be directed to the region(s) which contain the rows
you look for.

Cheers


On Wed, Feb 26, 2014 at 10:23 AM, Upendra Yadav <up...@gmail.com>wrote:

> My rowKey in this table is like : 1,MCA
> 2,BCA
> 3,Btech
> 4,Mtech
> ......
> ........
> And when with shell i performing get/scan operation i got everything as
> expected.
> But with http://172.20.8.20:60010/table.jsp?name=StudentScoreCard
> start key, end key showing totally different values as below.
>
> Is HBase have any Hashing over rowKey prior to storing in HBase?
> or rowKey is different than start-end keys.
> If different then how read operation happening.
> Table RegionsNameRegion ServerStart KeyEnd KeyRequests
> StudentScoreCard,,1392921893610.5d84949f14e229b7b447e94987048356.
> ceph-node1:60020 <http://ceph-node1:60030/>107467,C0
> StudentScoreCard,107467,C,1392923722513.2db013447332d9062369834ddfa18ece.
> hdfs-node1:60020 <http://hdfs-node1:60030/>107467,C127282,C0
> StudentScoreCard,127282,C,1392923875308.0ae59175d16cfd6ee286c6e719a92eef.
> hdfs-node2:60020 <http://hdfs-node2:60030/>127282,C1382020
> StudentScoreCard,138202,1392923875308.470ff761dfe087afff4ea18e8f14cf2c.
> ceph-node1:60020 <http://ceph-node1:60030/>138202155480,Mtech0
>
> StudentScoreCard,155480,Mtech,1392916973764.d5b874390857cfd52c897f70955d87f3.
> hdfs-node2:60020 <http://hdfs-node2:60030/>155480,Mtech196840
> StudentScoreCard,19684,1392917518754.d3672432f3d5eaf80c056539836f088e.
> admin-node:60020 <http://admin-node:60030/>1968423951,C0
> StudentScoreCard,23951,C,1392917692998.2e1b2d2f9b27b537510774052273b2c3.
> ceph-node2:60020 <http://ceph-node2:60030/>23951,C3008-0
> StudentScoreCard,3008-,1392918303387.14a509c7456e7f6751b83f9d196c92ba.
> hdfs-node3:60020 <http://hdfs-node3:60030/>3008-384810
> StudentScoreCard,38481,1392918303387.1d11fc5885dacb60bd35bbb7dee30dba.
> hdfs-node1:60020 <http://hdfs-node1:60030/>3848150151,Mtech0
>
> StudentScoreCard,50151,Mtech,1392919343954.0eb53ed84097ecc9e887de4e7aac7a8f.
> ceph-node2:60020 <http://ceph-node2:60030/>50151,Mtech554130
> StudentScoreCard,55413,1392919343954.6a67804161b1685ce5cabd1359ea4f22.
> hdfs-node1:60020 <http://hdfs-node1:60030/>554137015-0
> StudentScoreCard,7015-,1392920506888.df5e4b4d2c538ce1141f5406a6ad6ccf.
> ceph-node1:60020 <http://ceph-node1:60030/>7015-78041,C0
> StudentScoreCard,78041,C,1392920649492.1ef2dec85ce4007ffe7f5efc56b2abd1.
> hdfs-node2:60020 <http://hdfs-node2:60030/>78041,C84-0
> StudentScoreCard,84-,1392920649492.2bf8779f89698dc0702df5676953d04a.
> admin-node:60020 <http://admin-node:60030/>84-0
>