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 0D5D59926 for ; Tue, 9 Dec 2014 21:24:56 +0000 (UTC) Received: (qmail 17005 invoked by uid 500); 9 Dec 2014 21:24:53 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 16933 invoked by uid 500); 9 Dec 2014 21:24:53 -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 16918 invoked by uid 99); 9 Dec 2014 21:24:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2014 21:24:52 +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 dspivak@cloudera.com designates 209.85.215.51 as permitted sender) Received: from [209.85.215.51] (HELO mail-la0-f51.google.com) (209.85.215.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2014 21:24:26 +0000 Received: by mail-la0-f51.google.com with SMTP id ms9so1312243lab.10 for ; Tue, 09 Dec 2014 13:24:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=w7nkCLSDLuObFokF9RlX1f3aic8LNgC5DYD22E7bKUk=; b=krwd2VjohiSnJONnaBoRKqL9JOHV5XkQZcYH1HsAvigO1Bv5OI42Svm0DBeFcL242R uJ0IbCy3R1hiwEqEHfYHfoD9IiN75bPzWqMmqFRt1e/8XXBhnzFgPYRos8hDlQfRLGUv hnGqPy8OWCkDrhhpQu4r34cYYtmoYKbVhbk16U8VnrBza3QPCaOATSVbfG4EX3Gr9Z5q hI1/Dz4FrQBiRBbZSkGV2IbbVMpNk4QMpcZspCZl2RWtaABOM+vDhUiBiAjkZ63gZx64 oYDDgZXk48XctyzfRKTcpvhxOM0TmiaRdx0hS1EUixZyUt9omQlnt64kt8Jno5o7idTY w2WA== X-Gm-Message-State: ALoCoQnLFOpL0wiqVoOu7e7HZqQut5p0tAOKIZ7k66UASz583jAeeFKYKVBGko5D56uDqFr2WUYj X-Received: by 10.152.36.165 with SMTP id r5mr418429laj.93.1418160265427; Tue, 09 Dec 2014 13:24:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.40.206 with HTTP; Tue, 9 Dec 2014 13:23:45 -0800 (PST) In-Reply-To: References: From: Dima Spivak Date: Tue, 9 Dec 2014 13:23:45 -0800 Message-ID: Subject: Re: My cdh5.2 cluster get FileNotFoundException when running hbase MR jobs To: "user@hbase.apache.org" Cc: Yaniv Yancovich Content-Type: multipart/alternative; boundary=089e0158cab6db11440509cf2afe X-Virus-Checked: Checked by ClamAV on apache.org --089e0158cab6db11440509cf2afe Content-Type: text/plain; charset=UTF-8 Dear Ehud, You need the -libjars argument to move the dependency on your local file system into HDFS (the error is because that JAR is not there). -Dima On Tue, Dec 9, 2014 at 1:05 AM, Ehud Lev wrote: > My cdh5.2 cluster has a problem to run hbase MR jobs. > > For example, I added the hbase classpath into the hadoop classpath: > vi /etc/hadoop/conf/hadoop-env.sh > add the line: > export HADOOP_CLASSPATH="/usr/lib/hbase/bin/hbase > classpath:$HADOOP_CLASSPATH" > > And when I am running: > hadoop jar /usr/lib/hbase/hbase-server-0.98.6-cdh5.2.1.jar rowcounter > "mytable" > > I get the following exception: > > 14/12/09 03:44:02 WARN security.UserGroupInformation: > PriviledgedActionException as:root (auth:SIMPLE) > cause:java.io.FileNotFoundException: File does not exist: > hdfs://le-hds3-hb2/usr/lib/hbase/lib/hbase-client-0.98.6-cdh5.2.1.jar > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:54) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.util.RunJar.main(RunJar.java:212) > Caused by: java.io.FileNotFoundException: File does not exist: > hdfs://le-hds3-hb2/usr/lib/hbase/lib/hbase-client-0.98.6-cdh5.2.1.jar > at > > org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1083) > at > > org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1075) > at > > org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81) > at > > org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1075) > at > > org.apache.hadoop.mapreduce.filecache.ClientDistributedCacheManager.getFileStatus(ClientDistributedCacheManager.java:288) > at > > org.apache.hadoop.mapreduce.filecache.ClientDistributedCacheManager.getFileStatus(ClientDistributedCacheManager.java:224) > at > > org.apache.hadoop.mapreduce.filecache.ClientDistributedCacheManager.determineTimestamps(ClientDistributedCacheManager.java:93) > at > > org.apache.hadoop.mapreduce.filecache.ClientDistributedCacheManager.determineTimestampsAndCacheVisibilities(ClientDistributedCacheManager.java:57) > at > > org.apache.hadoop.mapreduce.JobSubmitter.copyAndConfigureFiles(JobSubmitter.java:265) > at > > org.apache.hadoop.mapreduce.JobSubmitter.copyAndConfigureFiles(JobSubmitter.java:301) > at > > org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:394) > at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1295) > at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1292) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:415) > at > > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614) > at org.apache.hadoop.mapreduce.Job.submit(Job.java:1292) > at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1313) > at > org.apache.hadoop.hbase.mapreduce.RowCounter.main(RowCounter.java:191) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > > org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72) > at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:145) > at > org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:153) > --089e0158cab6db11440509cf2afe--