Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName
If you are a maven user and faced this issue -
<dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifactId> <version>${hadoop.client.version}</version> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-common</artifactId> <version>${hadoop.client.version}</version> </dependency>
NOTE: :hadoop-client:2.5.2
alone didn't bring in all the required hadoop dependencies. That is why I added hadoop-common
, which brought all the required deps.