Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
hbase [2015/08/18 10:03] steve |
hbase [2015/08/18 10:26] steve |
||
---|---|---|---|
Line 61: | Line 61: | ||
==== hbase backups ==== | ==== hbase backups ==== | ||
+ | |||
+ | ** Exporting a table ** | ||
+ | |||
+ | From the docs: "Export is a utility that will dump the contents of table to HDFS in a sequence file." [[http://hbase.apache.org/book.html#_export|Source]] | ||
+ | |||
+ | <code> | ||
+ | hbase org.apache.hadoop.hbase.mapreduce.Export <tablename> <outputdir> [<versions> [<starttime> [<endtime>]]] | ||
+ | </code> | ||
+ | |||
+ | For example, exporting table ''table_name'': | ||
+ | |||
+ | <code> | ||
+ | hbase org.apache.hadoop.hbase.mapreduce.Export "'table_name'" /tmp/table_name | ||
+ | </code> | ||
==== TTL ==== | ==== TTL ==== |