./hbase org.apache.hadoop.hbase.mapreduce.Driver import 表名 数据文件位置
导入前必须在hbase建表
./hbase org.apache.hadoop.hbase.mapreduce.Driver export 表名 数据文件位置
数据文件位置可为本地路径 file:/// 或hdfs路径:hdfs://master:9000/path
hbase org.apache.hadoop.hbase.mapreduce.Driver
An example program must be given as the first argument.
Valid program names are:
completebulkload: Complete a bulk data load.
copytable: Export a table from local cluster to peer cluster
export: Write table data to HDFS.
import: Import data written by Export.
importtsv: Import data in TSV format.
rowcounter: Count rows in HBase table
verifyrep: Compare the data from tables in two different clusters. WARNING: It doesn't work for incrementColumnValues'd cells since the timestamp is changed after being appended to the log.