I need to parse the standard pcap binary log files library for MR (MapReduce) jobs already available in Git here
I also saw a sample here
ClassNotFoundException: p3.hadoop.mapreduce.lib.input.PcapInputFormat
I see the above exception when I ran the sample class.
My pom looks like
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.name.mr.analytics.main.NetworkAnalytics</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass></mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef> jar-with-dependencies </descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
I am packaging all the necessary jars but some how Maven is overwriting the manifest.mf file and I can see only the classpath or main-class in manifest.mf of jar-with-dependencies. However in the other jar that is getting created has all the details in manifest.mf but obviously the dependencies are not available.