$ bin/hbase org.apache.hadoop.hbase.mapreduce.Export <tablename> <outputdir> [<versions> [<starttime> [<endtime>]]]
上面的命令对于仅导出单个表很有用,但是非常耗时,因此我想一次导出所有表,因此是否有任何命令一次导出所有表?
Import/Export work on per-table basis. Alternatively, you could use Hadoop's distcp command to copy the whole /hbase directory from one HDFS cluster to the other. However, this can leave your data in an inconsistent state, so it should be avoided.
I would like to point out to a backup tool developed by folks at Mozilla which they say eliminates the limitations of distcp. See their post for more details.
I got my question answer:
For export table use copyFromLocal command - It copies local \\hbase directory
For import table use copyToLocal command -It pastes in local \\hbase directory.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.