hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hadoop Dev <hadoopeco....@gmail.com>
Subject Could not find the main class: org.apache.hadoop.mapreduce.v2.app.MRAppMaster
Date Mon, 23 Dec 2013 06:27:55 GMT
Hi All,

I am trying to execute first ever program (Word Count) in hadoop2.2.0
on Windows 7 (64bit). But do not know what's wrong with the classpath
which is making program fail at the runtime. (Failing @ container
launch)

Hadoop classpath set on my machine is

c:\hadoop\etc\hadoop;c:\hadoop\share\hadoop\common\lib\*;c:\hadoop\share\hadoop\
common\*;c:\hadoop\share\hadoop\hdfs;c:\hadoop\share\hadoop\hdfs\lib\*;c:\hadoop
\share\hadoop\hdfs\*;c:\hadoop\share\hadoop\yarn\lib\*;c:\hadoop\share\hadoop\ya
rn\*;c:\hadoop\share\hadoop\mapreduce\lib\*;c:\hadoop\share\hadoop\mapreduce\*


stderr:

java.lang.NoClassDefFoundError: org/apache/hadoop/service/CompositeService
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
	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)
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.service.CompositeService
	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)
	... 12 more
Could not find the main class:
org.apache.hadoop.mapreduce.v2.app.MRAppMaster.  Program will exit.
Exception in thread "main"

Mime
View raw message