[HBase] run hbase command by ruby

echo 'list.each {|t| truncate t}; quit;' | hbase shell

or Drop Table

echo 'list.each {|t| disable t; drop t}; quit;' | hbase shell

Scan Table

list.each {|t| print t; scan t, {LIMIT=>1};}
This entry was posted in HBase, Ruby. Bookmark the permalink.