hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anil Gupta <anilgupt...@gmail.com>
Subject Re: Hbase import/export change number of rows
Date Tue, 22 Sep 2015 16:46:18 GMT
How many rows are expected?
Can you do sanity checking in your data to make sure there are no duplicate rowkeys?

Sent from my iPhone

> On Sep 22, 2015, at 8:35 AM, OM PARKASH Nain <mr.omparkashnain@gmail.com> wrote:
> 
> I using two methods for row count:
> 
> hbase shell:
> 
> count "Table1"
> 
> another is:
> 
> hbase org.apache.hadoop.hbase.mapreduce.RowCounter "Table1"
> 
> Both give same number of row but export have different number of rows.
> 
>  hbase org.apache.hadoop.hbase.mapreduce.Export "Table1" "hdfs path"
> 
> 
> 
> 
> On Tue, Sep 22, 2015 at 5:33 PM, OM PARKASH Nain <mr.omparkashnain@gmail.com
>> wrote:
> 
>> I am using Hbase export using command.
>> 
>>  hbase org.apache.hadoop.hbase.mapreduce.Export "Table1" "hdfs path"
>> 
>> Then I use import command from HDFS to Hbase Table;
>> 
>> hbase org.apache.hadoop.hbase.mapreduce.Import "hdfs path" "Table2"
>> 
>> Then I count number of row in both tables, I found mismatch number of rows
>> 
>> Table1:8301 Table2:8032
>> 
>> Please define what goes wrong with my system.
>> 

Mime
View raw message