Looks like you have not install a correct java.
Make sure you have a sun java installed on your nodes and java is in your path as well JAVA_HOME should be set. I think gnu.gcj is the gnu java compiler but not a java you need to run hadoop.
Check on command line this:
$ java -version
you should see something like this:
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13- b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)

HTH


On Jun 23, 2008, at 9:40 PM, Sandy wrote:

I apologize for the severe basicness of this error, but I am in the process of getting hadoop set up. I have been following the instructions in the Hadoop quickstart. I have confirmed that bin/hadoop will give me help usage
information.

I am now in the stage of standalone operation.

I typed in:
mkdir input
cp conf/*.xml input
bin/hadoop jar hadoop-*-examples.jar grep input output 'dfs[a-z.]+'

at which point I get:
Exception in thread "main" java.lang.ClassNotFoundException:
java.lang.Iterable not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/sjm/Desktop/hado
op-0.16.4/bin/../conf/,file:/home/sjm/Desktop/hadoop-0.16.4/ bin/../,file:/home/s jm/Desktop/hadoop-0.16.4/bin/../hadoop-0.16.4-core.jar,file:/home/ sjm/Desktop/ha doop-0.16.4/bin/../lib/commons-cli-2.0-SNAPSHOT.jar,file:/home/sjm/ Desktop/hadoo p-0.16.4/bin/../lib/commons-codec-1.3.jar,file:/home/sjm/Desktop/ hadoop-0.16.4/b in/../lib/commons-httpclient-3.0.1.jar,file:/home/sjm/Desktop/ hadoop-0.16.4/bin/ ../lib/commons-logging-1.0.4.jar,file:/home/sjm/Desktop/ hadoop-0.16.4/bin/../lib /commons-logging-api-1.0.4.jar,file:/home/sjm/Desktop/hadoop-0.16.4/ bin/../lib/j ets3t-0.5.0.jar,file:/home/sjm/Desktop/hadoop-0.16.4/bin/../lib/ jetty-5.1.4.jar, file:/home/sjm/Desktop/hadoop-0.16.4/bin/../lib/ junit-3.8.1.jar,file:/home/sjm/D esktop/hadoop-0.16.4/bin/../lib/kfs-0.1.jar,file:/home/sjm/Desktop/ hadoop-0.16.4 /bin/../lib/log4j-1.2.13.jar,file:/home/sjm/Desktop/hadoop-0.16.4/ bin/../lib/ser vlet-api.jar,file:/home/sjm/Desktop/hadoop-0.16.4/bin/../lib/ xmlenc-0.52.jar,fil e:/home/sjm/Desktop/hadoop-0.16.4/bin/../lib/jetty-ext/commons- el.jar,file:/home /sjm/Desktop/hadoop-0.16.4/bin/../lib/jetty-ext/jasper- compiler.jar,file:/home/s jm/Desktop/hadoop-0.16.4/bin/../lib/jetty-ext/jasper- runtime.jar,file:/home/sjm/
Desktop/hadoop-0.16.4/bin/../lib/jetty-ext/jsp-api.jar],
parent=gnu.gcj.runtime. ExtensionClassLoader{urls=[], parent=null}}
  at java.net.URLClassLoader.findClass (libgcj.so.7)
  at java.lang.ClassLoader.loadClass (libgcj.so.7)
  at java.lang.ClassLoader.loadClass (libgcj.so.7)
  at java.lang.VMClassLoader.defineClass (libgcj.so.7)
  at java.lang.ClassLoader.defineClass (libgcj.so.7)
  at java.security.SecureClassLoader.defineClass (libgcj.so.7)
  at java.net.URLClassLoader.findClass (libgcj.so.7)
  at java.lang.ClassLoader.loadClass (libgcj.so.7)
  at java.lang.ClassLoader.loadClass (libgcj.so.7)
  at org.apache.hadoop.util.RunJar.main (RunJar.java:107)

I suspect the issue is path related, though I am not certain. Could someone
please point me in the right direction?

Much thanks,

SM

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101tec Inc.
Menlo Park, California, USA
http://www.101tec.com


Reply via email to