hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matteo Bertozzi <theo.berto...@gmail.com>
Subject Re: HBase snapshot custom directory
Date Wed, 29 Apr 2015 22:31:22 GMT
you should not access/modify the /hbase directory directly.
but after export you can use the "delete_snapshot" command or
Admin.deleteSnapshot() API to delete it.

Matteo


On Wed, Apr 29, 2015 at 11:27 PM, Akmal Abbasov <akmal.abbasov@icloud.com>
wrote:

> Hi Matteo,
> Thank you, for a quick reply.
> In this case, after exporting a snapshot to the location I want in my
> local machine,
> can I delete the same snapshot from the default location,
> /hbase/.hbase-snapshot ?
> Thank you.
>
> Regards,
> Akmal Abbasov
> > On 30 Apr 2015, at 00:17, Matteo Bertozzi <theo.bertozzi@gmail.com>
> wrote:
> >
> > on export you can specify any path
> > $ hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot
> > MySnapshot -copy-to hdfs://MY_SERVER:MY_PORT/MY_LOCATION
> >
> > so you can do:
> > $ hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot
> > MySnapshot -copy-to hdfs://localhost/backup/january-2015
> >
> > Matteo
> >
> >
> > On Wed, Apr 29, 2015 at 11:08 PM, Akmal Abbasov <
> akmal.abbasov@icloud.com>
> > wrote:
> >
> >> Hi all,
> >> Is it possible to specify the output HDFS directory for HBase snapshot?
> >> It could be very helpful to keep snapshots sorted according to a date.
> >> Thank you.
> >>
> >> Regards,
> >> Akmal Abbasov
> >>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message