Exception in Thread "Main" Java.Lang.Noclassdeffounderror: Org/Apache/Hadoop/Util/Platformname

java.lang.ClassNotFoundException: org.apache.hadoop.util.StopWatch


<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.7.2</version>
</dependency>

Exception in thread main java.lang.NoClassDefFoundError: org/apache/hadoop/tracing/SpanReceiverHost

I can't see what actually causes the loadClass from the stack trace snippet, but it appears that the class doesn't actually exist in the version, 2.8.1, of hadoop-common you're using. It seems to have vanished somewhere after 2.7.2

It, or something with the same name, is in the hbase source

Have you got a mix'n'match of versions going on?

Exception in thread main java.lang.NoClassDefFoundError: org/apache/hadoop/fs/StreamCapabilities. There is no version issue

Solved this by adding the following dependency in pom.xml besides the above:

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>3.1.1</version>
</dependency>


Related Topics



Leave a reply



Submit