You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Akmal Abbasov <ak...@icloud.com> on 2015/04/30 00:08:52 UTC

HBase snapshot custom directory

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

Re: HBase snapshot custom directory

Posted by Akmal Abbasov <ak...@icloud.com>.
Ok, thank you.

Regards,
Akmal Abbasov
> On 30 Apr 2015, at 00:31, Matteo Bertozzi <th...@gmail.com> wrote:
> 
> 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 <ak...@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 <th...@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
>>>> 
>> 
>> 


Re: HBase snapshot custom directory

Posted by Matteo Bertozzi <th...@gmail.com>.
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 <ak...@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 <th...@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
> >>
>
>

Re: HBase snapshot custom directory

Posted by Akmal Abbasov <ak...@icloud.com>.
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 <th...@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 <ak...@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
>> 


Re: HBase snapshot custom directory

Posted by Matteo Bertozzi <th...@gmail.com>.
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 <ak...@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
>