Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 36940200AE3 for ; Thu, 5 May 2016 05:53:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 304F8160A00; Thu, 5 May 2016 03:53:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 796BC1609FB for ; Thu, 5 May 2016 05:53:39 +0200 (CEST) Received: (qmail 69941 invoked by uid 500); 5 May 2016 03:53:38 -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 69929 invoked by uid 99); 5 May 2016 03:53:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2016 03:53:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5D744C0A88 for ; Thu, 5 May 2016 03:53:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.952 X-Spam-Level: * X-Spam-Status: No, score=1.952 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=scrunch-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id iY-af6Jc7xwC for ; Thu, 5 May 2016 03:53:36 +0000 (UTC) Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 5D1355F3A1 for ; Thu, 5 May 2016 03:53:35 +0000 (UTC) Received: by mail-ig0-f175.google.com with SMTP id u10so4959023igr.1 for ; Wed, 04 May 2016 20:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scrunch-com.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to; bh=SRxEyMXGps6VLZcu49+jjLucN6RuTk3p1xtwgJi0Rdc=; b=vLES5dwa+Rl89EOaa/QY1Nbq+vu1maf0z5K+MEMnX8yxqCeLfkUFxK5ZOgYkknkm0G ZFt8GrhNrWmY042Gz3XvwZX9d6zl4NbS2O+tWL6UgoFo/GK4nEBwZ5tkMyUTsfPWhzMl rR8iwLshwoaW5CwLM0y580lQ0SOtZnQMHTH6IXAnqqd3nHncu2h7TCByvJZWIglQ76Gw vyG06Zv9m3riRKXhrie8kimcMZ+OGkaLauW4DqZwXPkh2mXDo1YobZTqvE70kH2OezqE YPCXUNPmxF0pMc5m76Cuzp3i8R5qJ0XYZaG+7w052vuaK7z/hAcOpoBa8KTO3zby+2df c1MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=SRxEyMXGps6VLZcu49+jjLucN6RuTk3p1xtwgJi0Rdc=; b=mlAT29Y5RWLa7oFc1uKHfCZBnKnqNn2yfHWw0M5Dp25vsSd4Zl6s9D3JYiBQqxebHi 5EQpD5wdGsl1aG1lIzICt3HfSP3jMfqdirlVUmJYV3klSj3bpvAPppBan9NvWjHHs8mX rFd4I6/UsbYqpyT9uOTIjTqmXveC3FKLo3Oe/MbTSUk/QxSdfFlFR72vxfOVrw2odkoR 2yu7u3eAhUqvslp+WZ6RoSUYXGSa7cuPggaesWUv8z2iw1M/QK84EVGU/vxza9v/dRPE jSRuF95L2vwfNxwN611PQd0YS2pbxmLMkz/KtUl27FkzF32M3cML8rGRJGUJFEKhHvG8 9MQw== X-Gm-Message-State: AOPr4FWY4wLCbUnVp+o33LsYpGgV5Xg3kE8hHUyKLEkQyb2N7nMDb10f5NOuDinwxHPnsWlQp4kPOnFlSUi5/Q== MIME-Version: 1.0 X-Received: by 10.50.154.3 with SMTP id vk3mr1148377igb.27.1462420414284; Wed, 04 May 2016 20:53:34 -0700 (PDT) Received: by 10.64.7.100 with HTTP; Wed, 4 May 2016 20:53:34 -0700 (PDT) Date: Thu, 5 May 2016 13:53:34 +1000 Message-ID: Subject: Export HBase snapshot to S3 creates empty root directory (prefix) From: Lex Toumbourou To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=047d7bd76b9e4e86e205321049dc archived-at: Thu, 05 May 2016 03:53:40 -0000 --047d7bd76b9e4e86e205321049dc Content-Type: text/plain; charset=UTF-8 Hi all, I'm having a couple of problems with exporting HBase snapshots to S3. I am running HBase version 1.2.0. I have a table called "domain" And I have created a snapshot for it: hbase(main):003:0> snapshot 'domain', 'domain-aws-test' 0 row(s) in 0.3310 seconds --- I am attempting to export it to S3 using the following command: hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot "domain-aws-test" -copy-to s3://my-hbase-snapshots/domain-aws-test Now, when I view the snapshot metadata in the S3 bucket, there's nothing there: > aws s3 ls my-hbase-snapshots/domain-aws-snapshots But there is data under: > aws s3 ls my-hbase-snapshots/\/domain-aws-test/ PRE .hbase-snapshot/ 2016-05-05 13:38:12 1 .hbase-snapshot It seems what's happening is, HBase is creating a directory/prefix with no name and placing the snapshot data under there. That wouldn't be a problem, except that when I try to import the snapshot on my destination cluster, it seems unable to deal with the empty directory: sudo -u hbase hbase snapshot export -D hbase.rootdir=s3://my-hbase-snapshots/\/domain-aws-test -snapshot my-aws-test -copy-to hdfs://hbaseClusterDNSName:8020/user/hbase -mappers 2 Caused by: java.io.FileNotFoundException: No such file or directory 's3://my-hbase-snapshots/domain-aws-test/.hbase-snapshot/domain-aws-test' --- Any one come across this before? Lex --047d7bd76b9e4e86e205321049dc--