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 ED79B200C58 for ; Sun, 16 Apr 2017 09:26:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E15D3160B9A; Sun, 16 Apr 2017 07:26: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 0DB08160B92 for ; Sun, 16 Apr 2017 09:26:39 +0200 (CEST) Received: (qmail 13521 invoked by uid 500); 16 Apr 2017 07:26: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 13509 invoked by uid 99); 16 Apr 2017 07:26:38 -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; Sun, 16 Apr 2017 07:26:38 +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 CC723C0145 for ; Sun, 16 Apr 2017 07:26:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.479 X-Spam-Level: ** X-Spam-Status: No, score=2.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotjar-com.20150623.gappssmtp.com Received: from mx1-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 mctA4UCgNAXh for ; Sun, 16 Apr 2017 07:26:34 +0000 (UTC) Received: from mail-qt0-f169.google.com (mail-qt0-f169.google.com [209.85.216.169]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EFA1D5F39C for ; Sun, 16 Apr 2017 07:26:33 +0000 (UTC) Received: by mail-qt0-f169.google.com with SMTP id y33so2116222qta.2 for ; Sun, 16 Apr 2017 00:26:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotjar-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=IpRM/tKB8zd+0gLr24hAbI1LW4Uu7w1hNdWWo+XJEGU=; b=P+KE8KWXH4OfGhOKbNBhjUhHowbi2WfLJ429UJCIHsR9R7bgGv2BdL3Z+JnMCCOZT/ 4adD1dBFoYGC2S/snGjM00ntkWy/tD++E++yYR0CWkBrAqe8lSMf592qKD39TRB3xVJG EdOGWmGHh2kiLSv1i/7T4SgGppbi8P4+251yU2QUOQq0Jst3wmk6OA8XlPRrsx2zRnSb o/uahHiBA1ri8wF8YVBZFFgcAa+bc9cqsWmrNH3r4tdqjysmgiDH4uc7WweWtyWP3JQQ gR9thDG7n4NPNXNlZw2pYOPbuor+eLCQbdZ/2pZt2p/2Wnuav7J0QS0AKl9O/DMNEO1/ kOJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=IpRM/tKB8zd+0gLr24hAbI1LW4Uu7w1hNdWWo+XJEGU=; b=NVH7j4smZEuCdnf9ikpTc4phexI9iRG6JGy9cejZJC+t5Ls1XHL/P+kXYjumCql7qU lnavh59OiQWql8qIXCJKazCG+PRgqce6rTJmRJZyKuTrd5RPoBa6bOj0dbY9KZHHJte3 hbw90B4OwMAj+aq6rxHZpBA7SYMcwPKh/Ria9e+feq9Zqf/nQ+c+vdjtKvgRcSoc7rBH x+Ds0r44bkgjVxexRaWMfm/TRcsbEF/E0CeMTVPMvXlf1+1UmxYooSVL3OogdJLJ0XxE +V/aY269WFr7UYNLfCzp1NVT4RNM9ipcwhqQwxX6E2P/HrHOZz2pDTli0N7kdYS9fe9i pGVg== X-Gm-Message-State: AN3rC/4p/3BFuBUGDQ2N4AdwatxIRYOoEFjje0odeM7HyRGVlPqYqa2q 6I0J6j2XtfadY/55hOBNKkBAHDoxgQgeGoA= X-Received: by 10.200.45.167 with SMTP id p36mr4538404qta.265.1492327592757; Sun, 16 Apr 2017 00:26:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.163.1 with HTTP; Sun, 16 Apr 2017 00:25:52 -0700 (PDT) In-Reply-To: References: <11C87341-D9C2-4331-A1F2-923E2680FAE1@gmail.com> From: Vasco Pinho Date: Sun, 16 Apr 2017 09:25:52 +0200 Message-ID: Subject: Re: Hbase exportSnapshot fails in HA missing hbase-prefix-tree.jar To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a11c019da0e1fe2054d439815 archived-at: Sun, 16 Apr 2017 07:26:41 -0000 --001a11c019da0e1fe2054d439815 Content-Type: text/plain; charset=UTF-8 Running Hadoop 2.7.2, Hbase 1.2.4. On Fri, Apr 14, 2017 at 6:47 PM, Ted Yu wrote: > I can debug this next week when I have access to an HA cluster. > > Which release of Hadoop are you using ? > > Cheers > > > On Apr 14, 2017, at 9:21 AM, Vasco Pinho wrote: > > > > I'm not sure I follow. This file already exists under the install dir at: > > > > /home/ubuntu/hbase-1.2.4/hbase-prefix-tree/target/ > hbase-prefix-tree-1.2.4.jar > > > > The class is also present at: > > > > /home/ubuntu/hbase-1.2.4/hbase-prefix-tree/target/ > classes/org/apache/hadoop/hbase/codec/prefixtree/PrefixTreeCodec.class > > > > Why would I rename it? Is my classpath wrong for some reason? In any > case, > > renaming it to something like > > "hbase-prefix-tree/target/hbase-prefix-tree-1.2.4.jar.bak " yields > another > > exception of the same sort (full trace: https://pastebin.com/mzcPthZR): > > > > java.io.FileNotFoundException: File does not exist: > > hdfs://clusterID/root/.m2/repository/org/apache/htrace/ > htrace-core/3.1.0-incubating/htrace-core-3.1.0-incubating.jar > > > > So it looks like something else is wrong with the installation or there > is > > a bug that is making these searches attempt to look in "hdfs://" instead > of > > the filesystem? > > > > Thanks, > > Vasco Pinho > > > >> On Fri, Apr 14, 2017 at 4:32 PM, Ted Yu wrote: > >> > >> Here is how hbase-prefix-tree dependency is detected: > >> > >> try { > >> > >> prefixTreeCodecClass = > >> > >> Class.forName( > >> "org.apache.hadoop.hbase.codec.prefixtree.PrefixTreeCodec"); > >> > >> } catch (ClassNotFoundException e) { > >> > >> // this will show up in unit tests but should not show in real > >> deployments > >> > >> LOG.warn("The hbase-prefix-tree module jar containing > PrefixTreeCodec > >> is not present." + > >> > >> " Continuing without it."); > >> > >> } > >> > >> As a workaround, consider temporarily renaming hbase-prefix-tree jar on > the > >> node where ExportSnapshot is run. > >> > >> Remember to rename hbase-prefix-tree jar back after the job. > >> > >> FYI > >> > >>> On Fri, Apr 14, 2017 at 5:02 AM, Vasco Pinho wrote: > >>> > >>> Sure Ted, > >>> > >>> Here's the full trace: https://pastebin.com/AGimZ8wZ > >>> And here's the hbase-site.xml: https://pastebin.com/yhRWCsaU > >>> > >>> This is a working Hbase HA setup which has been happily chugging > along. 3 > >>> node HDFS JN, 3 node zk, 2 of them NN+backup NN. Also two of them > >>> HMaster+HMaster backup. Then several data nodes. > >>> > >>> Thanks for taking a look! > >>> > >>> Vasco > >>> > >>>> On Fri, Apr 14, 2017 at 1:41 PM, Ted Yu wrote: > >>>> > >>>> Can you show the complete stack trace ? > >>>> > >>>> Please pastebin contents of hbase/site.xml > >>>> > >>>> Thanks > >>>> > >>>>> On Apr 14, 2017, at 3:51 AM, Vasco Pinho wrote: > >>>>> > >>>>> When running: > >>>>> > >>>>> bin/hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot > >>>>> -Dfs.s3a.buffer.dir=/tmp/hbase_snap_tmp -snapshot > >>>> TestTable-20170413-143020 > >>>>> -copy-to s3a://bucket-backup/hbase/snapshots/ > >>>>> > >>>>> > >>>>> The operation fails with: > >>>>> > >>>>> > >>>>> 2017-04-13 15:03:24,947 ERROR [main] snapshot.ExportSnapshot: > >> Snapshot > >>>>> export failed > >>>>> java.io.FileNotFoundException: File does not exist: > >>>>> hdfs://clusterID/home/ubuntu/hbase-1.2.4/hbase-prefix-tree/ > >>>> target/hbase-prefix-tree-1.2.4.jar > >>>>> at > >>>>> org.apache.hadoop.hdfs.DistributedFileSystem$17. > >>>> doCall(DistributedFileSystem.java:1072) > >>>>> > >>>>> > >>>>> I assume it's looking for the > >>>>> "/home/ubuntu/hbase-1.2.4/hbase-prefix-tree/target/ > >>>> hbase-prefix-tree-1.2.4.jar" > >>>>> which does exist but obviously not under hdfs://. I don't know why > >> this > >>>>> file is needed or why it's being looked for in the hdfs:// instead of > >>> the > >>>>> local filesystem, where it does exist. I confirmed that it looks > >> under > >>>>> "fs.defaultFS" + + >>>> hbase-prefix-tree > >>>>> jar", although I have no idea how to fix this. Any ideas? > >>>>> > >>>>> > >>>>> Thanks, > >>>>> Vasco Pinho > >> > -- Vasco Pinho DevOps Engineer www.hotjar.com Connect with me on LinkedIn IMPORTANT CONFIDENTIALITY NOTICE: This message is confidential and intended for the use only of the person to whom this message is addressed. If you are not the intended recipient you are strictly prohibited from reading, disseminating, copying or using this message, or its contents in any way and must contact the sender immediately. --001a11c019da0e1fe2054d439815--