Return-Path: X-Original-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 522597068 for ; Tue, 9 Aug 2011 03:28:31 +0000 (UTC) Received: (qmail 81372 invoked by uid 500); 9 Aug 2011 03:28:30 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 81011 invoked by uid 500); 9 Aug 2011 03:28:20 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 80999 invoked by uid 99); 9 Aug 2011 03:28:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 03:28:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of praveensripati@gmail.com designates 209.85.161.48 as permitted sender) Received: from [209.85.161.48] (HELO mail-fx0-f48.google.com) (209.85.161.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 03:28:07 +0000 Received: by fxg7 with SMTP id 7so5959351fxg.35 for ; Mon, 08 Aug 2011 20:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=dZ4QK+PxXVo7hm9GF4PhqXm6Pu0p3r+MbSJqjZD1B10=; b=JmZpMDzE9rtOiISa3njNIF8x24ZPzUUzRC4Pa4/Yo1zd8oTbgYnGdT3HRe7IhWx7Da GLSBcPUitf8FEXA3xIJSGAN3rVegGgu+jJcYG+a4sJH0dBq6QF8eamTbK0cQJqWjq6n6 jtQOtSgNO4YxXUdDCvyA32veunMHEt3IZ5kXs= MIME-Version: 1.0 Received: by 10.204.141.26 with SMTP id k26mr659622bku.117.1312860467369; Mon, 08 Aug 2011 20:27:47 -0700 (PDT) Received: by 10.204.119.139 with HTTP; Mon, 8 Aug 2011 20:27:47 -0700 (PDT) Date: Tue, 9 Aug 2011 08:57:47 +0530 Message-ID: Subject: Not able to execute MRv2 From: Praveen Sripati To: mapreduce-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=0015175cd608cc155804aa0a25a7 X-Virus-Checked: Checked by ClamAV on apache.org --0015175cd608cc155804aa0a25a7 Content-Type: text/plain; charset=ISO-8859-1 Hi, Looks like the below instructions are a bit outdated. I got the mapreduce code from the MR-279 branch and the rest of the code from trunk. The hadoop-mapreduce-1.0-SNAPSHOT-all.tar.gz file got generated successfully. http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTALL 1) Expanded the tar file to the $YARN_INSTALL directory, created symbolic links to the jars in the hadoop-common/lib folder and ran the "bin/yarn-daemon.sh start resourcemanager" command from the $YARN_INSTALL directory to get the below error Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.conf.Configuration at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: org.apache.hadoop.yarn.server.resourcemanager.ResourceManager. Program will exit. Then copied the hadoop-common-0.23.0-SNAPSHOT.jar from the hadoop-common/target to the hadoop-common/lib folder. Then the yarn-praveensripati-resourcemanager-praveensripati.out had the following error after starting the ResourceManager. Exception in thread "main" java.lang.IllegalStateException: For this operation, current State must be STARTED instead of INITED at org.apache.hadoop.yarn.service.AbstractService.ensureCurrentState(AbstractService.java:101) at org.apache.hadoop.yarn.service.AbstractService.stop(AbstractService.java:69) at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.ApplicationMasterLauncher.stop(ApplicationMasterLauncher.java:90) at org.apache.hadoop.yarn.service.CompositeService.stop(CompositeService.java:89) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.stop(ResourceManager.java:423) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:493) Started the NodeManager and the HistoryServer. Running the jps shows only the ResourceManager and the NodeManager and not the HistoryServer. 2) From the hadoop-common/target/hadoop-common-0.23.0-SNAPSHOT-bin/bin folder I get the following error running the sample program ./hadoop jar $HADOOP_MAPRED_HOME/build/hadoop-mapred-examples-0.23.0-SNAPSHOT.jar randomwriter -Dmapreduce.job.user.name=$USER -Dmapreduce.randomwriter.bytespermap=10000 -Ddfs.blocksize=536870912 -Ddfs.block.size=536870912 -libjars $YARN_INSTALL/modules/hadoop-mapreduce-client-jobclient-1.0-SNAPSHOT.jar output java.lang.NoClassDefFoundError: org/apache/hadoop/mapreduce/lib/partition/InputSampler$Sampler at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getMethod0(Class.java:2670) at java.lang.Class.getMethod(Class.java:1603) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.(ProgramDriver.java:60) The hadoop-mapreduce-client-core-1.0-SNAPSHOT.jar which has the InputSampler.java class is there in the hadoop-common/lib folder, but still getting the above error. None of the .log files are getting generated. So, it's getting difficult yo debug. Appreciate help in resolving this. Thanks, Praveen --0015175cd608cc155804aa0a25a7--