It sounds like your import statements differ from the 0.18 wordcount example - you should make sure they are exactly as they appear here (line 6-10): http://hadoop.apache.org/common/docs/r0.18.3/mapred_tutorial.html
2009/7/18 Richard Bowser <[email protected]> > I get the oddest error: I'm trying to run the hadoop tutorial example > WordCount application. I copy the source code, and try to build it. I > type > "javac -classpath ~/hadoop-0.18.3-core.jar -d wordcount_classes > WordCount.java". Javac fails, returning over 50 errors. This all starts > with failures in compiling source lines 6-10: "package > org.apache.hadoop.glip does not exist"; "package org.apache.hadoop.glop > does not exist"; "package org.apache.hadoop.whatever does not exist". And > so on and so forth and so on. All other errors seem to come from so many > undefined functions. I verified there is no text error in my source code. > > This execution pattern is totally repeatable. I renamed my existing > hadoop-0.18.3.tar.gz, as well as my existing hadoop-0.18.3 directory. I > next > re-downloaded hadoop-0.18.3.tar.gz and once again extracted the directory. > Diff reported both hadoop-0.18.3.tar.gz files are identical. Diff also > reported that both hadoop-0.18.3-core.jar files are identical too. I tried > again; I got the same result. I repeated the test, this time with a friend > verifying my typing of the classpath specification: No typos. No > difference in results. ACK! What? Help! > > Can anyone help me figure WHY? > - Rich B. >
