You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by 郑建锋 <la...@126.com> on 2012/01/30 13:30:58 UTC
the scan and row count lost many rows on my side
hello, this is my case:
my Hbase run on single machine and store data to local file system, not Hdfs
I have put lots of documents to a table in Hbase database
As screenshot attached, there are many regions with start key and end key like "CN xxxxxxxxx A" and "CN xxxxxxx U"
But when i try to get the total number of rows of this table by command "count" in Hbase shell, i got a number too small-49158, i think it should be 10 times more than that. and the keys printed out are all like "CN xxxxxxx B"
I also wrote some code use Scan to iterate the whole table, get the result same as shell
And if i try to get value of "CN xxxxxxx A", the shell can return value.
strange
I put so many data in it but i can't retrieve all of them now!
Please help me, thanks very much!
Re: the scan and row count lost many rows on my side
Posted by Stack <st...@duboce.net>.
2012/1/30 郑建锋 <la...@126.com>:
> hello, this is my case:
> my Hbase run on single machine and store data to local file system, not Hdfs
> I have put lots of documents to a table in Hbase database
> As screenshot attached, there are many regions with start key and end key
> like "CN xxxxxxxxx A" and "CN xxxxxxx U"
> But when i try to get the total number of rows of this table by command
> "count" in Hbase shell, i got a number too small-49158, i think it should be
> 10 times more than that. and the keys printed out are all like "CN xxxxxxx
> B"
> I also wrote some code use Scan to iterate the whole table, get the result
> same as shell
> And if i try to get value of "CN xxxxxxx A", the shell can return value.
> strange
> I put so many data in it but i can't retrieve all of them now!
> Please help me, thanks very much!
>
>
No guarantees when you run using local filesystem; local filesystem
does not implement sync. Did your server crash during upload process?
St.Ack