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 0BF65C81A for ; Wed, 13 Jun 2012 06:48:20 +0000 (UTC) Received: (qmail 91645 invoked by uid 500); 13 Jun 2012 06:48:18 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 91418 invoked by uid 500); 13 Jun 2012 06:48:17 -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 91368 invoked by uid 99); 13 Jun 2012 06:48:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 06:48:14 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ananthu2050@gmail.com designates 209.85.160.169 as permitted sender) Received: from [209.85.160.169] (HELO mail-gh0-f169.google.com) (209.85.160.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 06:48:07 +0000 Received: by ghrr18 with SMTP id r18so150903ghr.14 for ; Tue, 12 Jun 2012 23:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=UjcBlgBdtN6KdPypnmuikcYiAcWJ4j+IXcXE1kYrf50=; b=cTWzjVOKPPjH/8sNfokynxKqZJ1czPd8SoFrNHzK6i+/iijocJgmP7Xcfi/xzNSQ7u 6NWHDKUIyoUn5JPmBnz0sjwmcwsZan2cpDAbUCWZmD8f5Vld7MfeaD4BRfq3AIn9qclU F3+N0TZl9Z+adIfBk9AI6FvUbs01lTjn/pdVAd8rtzoM52sb/dzFl/moxBow8QrHFV0/ /ynV+o91XV3hl71RZYlH8DiRazgt6v8xnE8pDy92dCW/zC9EFkxIbMume+eEXSa3nPeq 7utLhEzzLG53JethgfLW48qbHTwdJIOQyK2gyjcbKi828hhZfF6fYiHMZLOTGduZCovC KXwA== Received: by 10.236.185.167 with SMTP id u27mr32035951yhm.32.1339570066883; Tue, 12 Jun 2012 23:47:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.79.8 with HTTP; Tue, 12 Jun 2012 23:47:26 -0700 (PDT) In-Reply-To: <4fd83119.c5bf440a.27a4.ffffc0a7SMTPIN_ADDED@mx.google.com> References: <4fd83119.c5bf440a.27a4.ffffc0a7SMTPIN_ADDED@mx.google.com> From: AnandaVelMurugan Chandra Mohan Date: Wed, 13 Jun 2012 12:17:26 +0530 Message-ID: Subject: Re: Need help in running rowcounter mapreduce job in Hadoop cluster To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=20cf305b0c8efd03ca04c254f595 --20cf305b0c8efd03ca04c254f595 Content-Type: text/plain; charset=ISO-8859-1 Thanks for quick response That was a silly mistake. Sorry about that. But now I get the following error Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/Multimap at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:43) 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:616) at org.apache.hadoop.util.RunJar.main(RunJar.java:156) Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Multimap at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) ... 6 more I think this is because the jars in /lib folder are not in hadoop classpath. But I have explicitly set it already. Am I missing anything still? On Wed, Jun 13, 2012 at 11:48 AM, Gopinathan A wrote: > Use ./hadoop jar /usr/local/hbase-0.92.1-security/hbase-0.92.1-security.jar > rowcounter > > Thanks & Regards, > Gopinathan A > > > **************************************************************************** > *********** > This e-mail and attachments contain confidential information from HUAWEI, > which is intended only for the person or entity whose address is listed > above. Any use of the information contained herein in any way (including, > but not limited to, total or partial disclosure, reproduction, or > dissemination) by persons other than the intended recipient's) is > prohibited. If you receive this e-mail in error, please notify the sender > by > phone or email immediately and delete it! > > -----Original Message----- > From: AnandaVelMurugan Chandra Mohan [mailto:ananthu2050@gmail.com] > Sent: Wednesday, June 13, 2012 10:52 AM > To: user@hbase.apache.org > Subject: Need help in running rowcounter mapreduce job in Hadoop cluster > > Hi, > > I have a three node Hadoop fully distributed cluster. I have HBase > installed, also in fully distributed mode. I am interested in running > rowcounter map reduce job bundled with HBase. > > I am doing the following in one of my node > > > export > HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/usr/local/hbase-0.92.1-security/lib/ > export > HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/usr/local/hbase-0.92.1-security/conf/ > cd /usr/local/hadoop-1.0.2/bin/ > ./hadoop /usr/local/hbase-0.92.1-security/hbase-0.92.1-security.jar > rowcounter > > I am getting following error > > Exception in thread "main" java.lang.NoClassDefFoundError: > /usr/local/hbase-0/92 > /1-security/hbase-0/92/1-security/jar > Caused by: java.lang.ClassNotFoundException: > .usr.local.hbase-0.92.1-security.hb > ase-0.92.1-security.jar > at java.net.URLClassLoader$1.run(URLClassLoader.java:217) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:205) > at java.lang.ClassLoader.loadClass(ClassLoader.java:321) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) > at java.lang.ClassLoader.loadClass(ClassLoader.java:266) > Could not find the main class: > /usr/local/hbase-0.92.1-security/hbase-0.92.1-sec > urity.jar. Program will exit. > > Am I doing anything wrong. Should I change any configuration file in > Hadoop. > > Any help would be greatly appreciated. > > -- > Regards, > Anand > > -- Regards, Anand --20cf305b0c8efd03ca04c254f595--