Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C1BB10EB6 for ; Tue, 16 Apr 2013 03:24:40 +0000 (UTC) Received: (qmail 53674 invoked by uid 500); 16 Apr 2013 03:24:39 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 53554 invoked by uid 500); 16 Apr 2013 03:24:39 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 53535 invoked by uid 99); 16 Apr 2013 03:24:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 03:24:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jon@cloudera.com designates 209.85.128.43 as permitted sender) Received: from [209.85.128.43] (HELO mail-qe0-f43.google.com) (209.85.128.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 03:24:33 +0000 Received: by mail-qe0-f43.google.com with SMTP id f6so29045qej.16 for ; Mon, 15 Apr 2013 20:24:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=Sv33h6livJXURxz04LZfYYpuD8iQOOdcEzn0BYxl4wY=; b=AQbyzujNUOfrvU2JzEX+3onvT9RCIUsCy1gI7YtMc6nl/NqQEQkh2eYDtFKsVIZvct AhjGgJMpY3gkUHNREw0h15m7qrPJC30GBOt/ZaaNHyAJ5pMnnWfD/lkCA9xubdRY8ewu NHFK2JK1j0/Q2t197YZ+D4DCTVeZLZGXmKPuG/qg+5qAsHp8fN1moiixfNTqNP3OFJZ9 1iCiQxXjBM9pIJuki9ZSfVHbcMSIr2+KaNJRl9mO5+Exehy+Ztta2hzvsG/vMTQOkYdj mmZO7pQ6n7kQvR8/5dH0w60NAadJk9LNseNNYQ9B/ssTTfVsdo40EjFkKJQrcx+95cJb 7duw== MIME-Version: 1.0 X-Received: by 10.229.145.194 with SMTP id e2mr184245qcv.62.1366082653096; Mon, 15 Apr 2013 20:24:13 -0700 (PDT) Received: by 10.49.27.102 with HTTP; Mon, 15 Apr 2013 20:24:12 -0700 (PDT) In-Reply-To: <1366081212.85695.YahooMailNeo@web140603.mail.bf1.yahoo.com> References: <1366081212.85695.YahooMailNeo@web140603.mail.bf1.yahoo.com> Date: Mon, 15 Apr 2013 20:24:12 -0700 Message-ID: Subject: collision in the naming of '.snapshot' directory between hdfs snapshot and hbase snapshot From: Jonathan Hsieh To: "dev@hbase.apache.org" , lars hofhansl Cc: "hdfs-dev@hadoop.apache.org" Content-Type: multipart/alternative; boundary=00248c17687a45ac3f04da71e74c X-Gm-Message-State: ALoCoQnQmNe+FKSOb8XaYGajVvI7toFH++fVuHTTnZx13uTlYAZoh/+Xvqx7ENybLvd7CZrhQjIx X-Virus-Checked: Checked by ClamAV on apache.org --00248c17687a45ac3f04da71e74c Content-Type: text/plain; charset=ISO-8859-1 constraints: 1) hbase 0.94.6 is released and .snapshot is hardcoded in there. 2) hdfs snapshots is a Hadoop 2.1 or 3.0 feature. I doubt that it will ever make it to 1.x. This hdfs feature ideally this shouldn't affect current A pache Hbase 0.94.x's. 3) hbase 95/96 may default to Hadoop1 or Hadoop 2. these versions should pick a different table snapshot name to respect fs conventions. proposed actions: 1) let's make the hbase snapshot for a conf variable. (hbase. snapshots.dir) let's change the default for hbase 95+. (maybe .hbase-snapshots). we'll also port this patch to 0.94.x 2) let's publish instructions on how to update the hbase snapshot dir: shutdown hbase, config update, rename dir, restart hbase. 3) I lean towards leaving the current default hbase snapshot dir in 94 since it shouldn't be affected. upgrading hbase to 95/96 will require shutdown and update scripts so it seems like the ideal time to autoforce this default change. Thoughts? On Monday, April 15, 2013, lars hofhansl wrote: > OK. Let's try to fix that quickly, so that I can release HBase 0.94.7. > > -- Lars > > > > ________________________________ > From: Ted Yu > To: dev@hbase.apache.org; hdfs-dev@hadoop.apache.org > Sent: Monday, April 15, 2013 7:13 PM > Subject: collision in the naming of '.snapshot' directory between hdfs > snapshot and hbase snapshot > > > Hi, > This afternoon Huned ad I discovered an issue while playing with HBase > Snapshots on top of Hadoop's Snapshot branch ( > http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-2802/). > > HDFS (built from HDFS-2802 branch) doesn't allow paths with .snapshot as a > component while HBase tries to create paths with .snapshot as a component. > This leads to issues in HBase, and one of HDFS or HBase needs to give up > the .snapshot reserved keyword. HBase released Snapshots feature in 0.94.6 > (quite recently) and it may not be too late to change HBase to use a > different path component in an upcoming new release. > > In HBase these path names are not user visible. If there is a deployment of > 0.94.6, one could provide a migration tool that renames .snapshot to > .hbase-snapshot or something to be able to move to the Snapshot release of > Hadoop. On the other hand, .snapshot in HDFS is a user visible name and is > a convention that is used by many file systems. It's a matter of > familiarity with such path names that would help users in using HDFS > snapshots. > > I am including the hdfs-dev in this email. Would appreciate if we could > work together and come up with a solution. > > You can find sample output from hdfs command here: > http://pastebin.com/bBqR4Fvr > > Cheers -- // Jonathan Hsieh (shay) // Software Engineer, Cloudera // jon@cloudera.com --00248c17687a45ac3f04da71e74c--