hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Evans <ev...@yahoo-inc.com>
Subject Re: Hadoop Java compilation error
Date Wed, 14 Nov 2012 21:36:39 GMT
Hadoop is not a java runtime environment it runs special map/reduce applications.  Go search
for "how to write a hadoop program" and there will be lots of examples or you can pick up
a book on Hadoop and that can help you with some examples too.

--Bobby

From: R J <rj201244@yahoo.com<mailto:rj201244@yahoo.com>>
Reply-To: "user@hadoop.apache.org<mailto:user@hadoop.apache.org>" <user@hadoop.apache.org<mailto:user@hadoop.apache.org>>,
R J <rj201244@yahoo.com<mailto:rj201244@yahoo.com>>
Date: Wednesday, November 14, 2012 3:00 PM
To: "user@hadoop.apache.org<mailto:user@hadoop.apache.org>" <user@hadoop.apache.org<mailto:user@hadoop.apache.org>>
Subject: Hadoop Java compilation error

Hi All,
I installed Hadoop 1.0.4 on Cygwin and tried to run Java HelloWorld but I get exception error:
$ bin/hadoop javac HelloWorld.java
java.lang.NoClassDefFoundError: javac
Exception in thread "main"
$ echo $JAVA_HOME
/cygdrive/c/java
$ javac HelloWorld.java
$ java HelloWorld
Hello, World
I have set JAVA_HOME environment variable in hadoop-env.sh .
How do I make it work on hadoop?
Thank you.

Mime
View raw message