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
Any Good Orm Tools for Android Development
Java Says Filenotfoundexception But File Exists
How to Mock Void Methods With Mockito
Why Does Arrayindexoutofboundsexception Occur and How to Avoid It in Android
When to Use Stringbuilder in Java
Clicking the Back Button Twice to Exit an Activity
Java: How to Get Input from System.Console()
Set Margins in a Linearlayout Programmatically
How to Use Swingworker in Java
Manifest Merger Failed:Attribute Application@Appcomponentfactory Cant Solve This
MySQLsyntaxerrorexception Near "" When Trying to Execute Preparedstatement
How to Set Selected Item of Spinner by Value, Not by Position
Should I Instantiate Instance Variables on Declaration or in the Constructor
Jaspersoft Studio 6.2 Build Path Warning
Connect as User with No Password Set on Postgresql 8.4 via Jdbc