Verifying Migration
About this task
Procedure
-
Verify that the destination table exists. From the HBase shell, use the
listcommand, or use thehadoop fs -ls /user/john/foocommand from a Linux prompt:hbase(main):006:0> list '/user/john/foo' TABLE /user/john/foo/mytable01 1 row(s) in 0.0770 seconds -
Check the number of rows in the source table against the
destination table with
the
countcommand:hbase(main):005:0> count '/user/john/foo/mytable01' 30 row(s) in 0.1240 seconds - Hash each table, then compare the hashes.