Use ./hadoop jar /usr/local/hbase-0.92.1-security/hbase-0.92.1-security.jar rowcounter <tablename>
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:[email protected]] Sent: Wednesday, June 13, 2012 10:52 AM To: [email protected] 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 <tablename> 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
