Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 98D28179E9 for ; Wed, 29 Apr 2015 22:32:17 +0000 (UTC) Received: (qmail 45933 invoked by uid 500); 29 Apr 2015 22:32:15 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 45868 invoked by uid 500); 29 Apr 2015 22:32:15 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 45850 invoked by uid 99); 29 Apr 2015 22:32:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 22:32:15 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.164.171.186 which is an MX secondary for user@hbase.apache.org) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 22:32:10 +0000 Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 16C4D43DE9 for ; Wed, 29 Apr 2015 22:31:50 +0000 (UTC) Received: by wief7 with SMTP id f7so143750wie.0 for ; Wed, 29 Apr 2015 15:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=nD0f1UffB6Hw19faf6rjkBrouCycsrQGSCRZ40w4ve4=; b=pvAapoLeDID77slPSGtGfF0PlE+sjZK4FeERilROczmDADn27vIV/F928cbnnt+zeu khBYhGopy3d/p9frW/YelyYMvWU+KCvY74qmdP16rCz80NQ99XsS/rknCmVuclFA1EML SqAYlPn20zYg/LPdhwMiTC3wqiTqUg0WmSY/cRiysvS9NI2a0erLpEW8m6x14/gJ3JJN YRL3nO8vV+WkDqSjL2XWxIZb3i4HDA4c493u/y7E6jsxAi25OLBw/aH0Q5zd8yODiTDp 94fdL/xHV9EeTomRFBvIgJSsOGwB/aGk7TctCc40MhYBzkflcd7k8BzW+WQCHdUMla9r 6eHw== X-Received: by 10.194.83.105 with SMTP id p9mr2435216wjy.117.1430346703024; Wed, 29 Apr 2015 15:31:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.209.226 with HTTP; Wed, 29 Apr 2015 15:31:22 -0700 (PDT) In-Reply-To: References: <9B2DF3BC-EDBB-4587-9CBC-0EE4C51F4996@icloud.com> From: Matteo Bertozzi Date: Wed, 29 Apr 2015 23:31:22 +0100 Message-ID: Subject: Re: HBase snapshot custom directory To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=047d7bb04ed623b8500514e48b85 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bb04ed623b8500514e48b85 Content-Type: text/plain; charset=UTF-8 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 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 > 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 > >> > > --047d7bb04ed623b8500514e48b85--