hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Lipcon <t...@cloudera.com>
Subject Re: Trouble with tutorial
Date Wed, 02 Dec 2009 19:03:09 GMT
Make sure you're using Java6. Hadoop is compiled with Java6, and it smells
like you're using an earlier JDK.

-Todd

On Wed, Dec 2, 2009 at 11:01 AM, Mikko Lahti <mikko.lahti@pp1.inet.fi>wrote:

> Hi,
>
> I'm trying to run the map/reduce tutorials with windows XP and cygwin.
>
> In the 2nd step:  javac -classpath
> ${HADOOP_HOME}/hadoop-${HADOOP_VERSION}-core.jar -d wordcount_classes
> WordCount.java ,  I get the following error:
>
> WordCount.java:6: cannot access org.apache.hadoop.fs.Path
> bad class file: hadoop-0.19.2-core.jar(org/apache/hadoop/fs/Path.class)
> class file has wrong version 50.0, should be 49.0
> Please remove or make sure it appears in the correct subdirectory of the
> classpath.
>  import org.apache.hadoop.fs.Path;
>                                   ^
> 1 error
>
> I'm using the command:
> javac -classpath hadoop-0.19.2-core.jar -d wordcount_classes Wordcount.java
> This is done at the root directory of Hadoop.
>
>
> I also used the command with -verbose, this gets:
>
> [parsing started WordCount.java]
> [parsing completed 47ms]
> [search path for source files: [hadoop-0.19.2-core.jar]]
> [search path for class files: [c:\Program
> Files\Java\jdk1.5.0_09\jre\lib\rt.jar, c:\Program
> Files\Java\jdk1.5.0_09\jre\lib\jsse.jar, c:\Program
> Files\Java\jdk1.5.0_09\jre\lib\jce.jar, c:\Program
> Files\Java\jdk1.5.0_09\jre\lib\charsets.jar, c:\Program
> Files\Java\jdk1.5.0_09\jre\lib\ext\dnsns.jar, c:\Program
> Files\Java\jdk1.5.0_09\jre\lib\ext\jmf.jar, c:\Program
> Files\Java\jdk1.5.0_09\jre\lib\ext\localedata.jar, c:\Program
> Files\Java\jdk1.5.0_09\jre\lib\ext\sound.jar, c:\Program
> Files\Java\jdk1.5.0_09\jre\lib\ext\sunjce_provider.jar, c:\Program
> Files\Java\jdk1.5.0_09\jre\lib\ext\sunpkcs11.jar, hadoop-0.19.2-core.jar]]
> [loading c:\Program
> Files\Java\jdk1.5.0_09\jre\lib\rt.jar(java/io/IOException.class)]
> [loading hadoop-0.19.2-core.jar(org/apache/hadoop/fs/Path.class)]
> WordCount.java:6: cannot access org.apache.hadoop.fs.Path
> bad class file: hadoop-0.19.2-core.jar(org/apache/hadoop/fs/Path.class)
> class file has wrong version 50.0, should be 49.0
> Please remove or make sure it appears in the correct subdirectory of the
> classpath.
>  import org.apache.hadoop.fs.Path;
>                                   ^
> [total 453ms]
> 1 error
>
> Running the latest stable 0.20.1 makes no difference.
>
> What could be wrong?
>
> - Mikko
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message