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 2BEC210839 for ; Wed, 10 Dec 2014 15:54:15 +0000 (UTC) Received: (qmail 53371 invoked by uid 500); 10 Dec 2014 15:54:07 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 53307 invoked by uid 500); 10 Dec 2014 15:54:07 -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 Delivered-To: moderator for user@hbase.apache.org Received: (qmail 54622 invoked by uid 99); 10 Dec 2014 08:13: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 ehud@gigya-inc.com designates 209.85.192.45 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gigya-inc.com; s=gigya-inc; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=N7ht2R0ODgx4ACEjV3Me/UMyNiEYxrdltt21OPRfb7k=; b=BUGH4pmkgIUBL/5l5pFITZnTQvDFr4AS3iIRO1uiKgkSLJBA7hxKBx6UTPG27KlbB2 +cvc5ENf4OsdAtGf/XIoWOapiBZthRc7xWl1sTrgvWgOZLzVIGTCY0ivUFpUwq76N8WA L9ZVdrlZo+twb4MI6eztQdGAfQS5LRJqPeMB4= 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:date :message-id:subject:from:to:content-type; bh=N7ht2R0ODgx4ACEjV3Me/UMyNiEYxrdltt21OPRfb7k=; b=mNvk3ZWXnmfKA27N0EkVad3i3OWmqE1ouAOLnIpQ0yy75hzqkZD9ibt3gDoFy7ply0 x3OuHwOa/EF53d9H70g3zT0p8yWfHYrATPSecTXg/hcGazDbAWvB6ed/gyMhpBgtADFb XoilzKUvx8FHdetq7UgfCb/9ZxMFiFSO7gB18qV6gAmzmqhOxsomqrHxCN2i75sSMAj/ KkVX0ykjUbx6JW+Y+9dExmMYBOXAEjGnpTgJDMfRf3knswsakALlw5Md6C4I3CE7L1rA HvdwOwLoLGAZtH3hO7+LzJCMkd9pCtKsJoyz3LP+mz02krUv0XuOfDPc76xW+m5zBxO/ uQzw== X-Gm-Message-State: ALoCoQn2MdxZZw800hVLa7o9rHLvM9CVtrpiY2ZugF0+Ck2M+l+c4ynqJbF1AV2nl7iPmftXma5E MIME-Version: 1.0 X-Received: by 10.224.96.129 with SMTP id h1mr3150237qan.46.1418199204823; Wed, 10 Dec 2014 00:13:24 -0800 (PST) In-Reply-To: References: Date: Wed, 10 Dec 2014 10:13:24 +0200 Message-ID: Subject: Re: My cdh5.2 cluster get FileNotFoundException when running hbase MR jobs From: Ehud Lev To: Yaniv Yancovich , dspivak@cloudera.com, user@hbase.apache.org, Ilia Buleh Content-Type: multipart/alternative; boundary=001a11c34efad318da0509d83b70 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c34efad318da0509d83b70 Content-Type: text/plain; charset=UTF-8 Hi Dima, Thanks for the fast response, Unfortunately this is not working for me, I tried : hadoop jar /usr/lib/hbase/hbase-server-0.98.6-cdh5.2.1.jar rowcounter -libjars /usr/lib/hbase/lib/hbase-client-0.98.6-cdh5.2.1.jar "mytable" and hadoop jar /usr/lib/hbase/hbase-server-0.98.6-cdh5.2.1.jar rowcounter "mytable" -libjars /usr/lib/hbase/lib/hbase-client-0.98.6-cdh5.2.1.jar Same error ! In addition this is working: ls /usr/lib/hbase/lib/hbase-client-0.98.6-cdh5.2.1.jar /usr/lib/hbase/lib/hbase-client-0.98.6-cdh5.2.1.jar I also tried to run my own fat jars that was working on cdh4, but after I compiled it with the cdh5 (same version as the cluster) I get the same error. I guess this is an hbase environment issue, but I can't put my finger on it. On Wed, Dec 10, 2014 at 9:56 AM, Yaniv Yancovich wrote: > > ---------- Forwarded message ---------- > From: Dima Spivak > Date: Tue, Dec 9, 2014 at 11:23 PM > Subject: Re: My cdh5.2 cluster get FileNotFoundException when running > hbase MR jobs > To: "user@hbase.apache.org" > Cc: Yaniv Yancovich > > > 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) >> > > > --001a11c34efad318da0509d83b70--