hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Bertozzi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15508) Add command for exporting snapshot in hbase command script
Date Wed, 23 Mar 2016 17:37:25 GMT

    [ https://issues.apache.org/jira/browse/HBASE-15508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15208836#comment-15208836
] 

Matteo Bertozzi commented on HBASE-15508:
-----------------------------------------

I did a test run, and looks ok to me. going to commit it.
{noformat}
$ hbase snapshot 
Usage: hbase [<options>] snapshot <subcommand> [<args>]
Options:
  --config DIR     Configuration direction to use. Default: ./conf
  --hosts HOSTS    Override the list in 'regionservers' file
  --auth-as-server Authenticate to ZooKeeper using servers configuration

Subcommands:
  create          Create a new snapshot of a table
  info            Tool for dumping snapshot information
  export          Export an existing snapshot
{noformat}

{noformat}
$ hbase snapshot create
2016-03-23 10:36:10,332 ERROR [main] util.AbstractHBaseTool: Required option -name is missing
2016-03-23 10:36:10,333 ERROR [main] util.AbstractHBaseTool: Required option -table is missing
usage: bin/hbase org.apache.hadoop.hbase.snapshot.CreateSnapshot <options>
Options:
 -h,--help                  Show usage
 -n,--name <arg>            The name of the created snapshot
 -s,--snapshot_type <arg>   Snapshot Type. FLUSH is default. Posible values are [DISABLED,
FLUSH, SKIPFLUSH]
 -t,--table <arg>           The name of the table
{noformat}

{noformat}
$ hbase snapshot info
Missing snapshot name!
Usage: bin/hbase snapshot info [options]
 where [options] are:
...
{noformat}

{noformat}
$ hbase snapshot export
Snapshot name not provided.
Usage: bin/hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot [options]
...
{noformat}

> Add command for exporting snapshot in hbase command script
> ----------------------------------------------------------
>
>                 Key: HBASE-15508
>                 URL: https://issues.apache.org/jira/browse/HBASE-15508
>             Project: HBase
>          Issue Type: Improvement
>          Components: hbase, scripts, snapshots
>    Affects Versions: 1.2.0, 1.1.2, 1.1.3
>            Reporter: Yufeng Jiang
>            Assignee: Yufeng Jiang
>            Priority: Minor
>             Fix For: 2.0.0, 1.2.1, 1.1.4, 1.2.2
>
>         Attachments: HBASE-15508-branch-1.1-and-1.2.patch, HBASE-15508-branch-1.1-and-1.2.patch.v2,
HBASE-15508-branch-2.0.patch, HBASE-15508-branch-master.patch
>
>
> Users of the hbase command script can now use the 'hbase snapshot export’ command.
This replaces the need to type the full class name of 'org.apache.hadoop.hbase.snapshot.ExportSnapshot'
> In addition to adding command 'snapshot export', we are also grouping snapshot related
commands together as subcommands under 'hbase snapshot'.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message