packetloop/packetpig — pull request #3 by jt6211 (2012-06-15 18:48:24+00:00)
Title: Fixed some dependency issues I was having...

Added creation of a self contained jar (jar with dependencies), fixed this error when running the dns.pig example.

Error: java.lang.ClassNotFoundException: org.codehaus.jackson.map.ObjectMapper
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at com.packetloop.packetpig.loaders.pcap.protocol.DNSConversationRecordReader.(DNSConversationRecordReader.java:18)
at com.packetloop.packetpig.loaders.pcap.protocol.DNSConversationLoader$1.createRecordReader(DNSConversationLoader.java:30)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.initNextRecordReader(PigRecordReader.java:228)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.(PigRecordReader.java:109)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigInputFormat.createRecordReader(PigInputFormat.java:119)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:588)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
at org.apache.hadoop.mapred.Child.main(Child.java:170)

Added jackson-mapper-asl 1.4.0 dep so 1.0.1 wouldn't be included from Hadoop and cause problems. Fixed this error:

FATAL org.apache.hadoop.mapred.TaskTracker: Error running child : java.lang.NoSuchMethodError: org.codehaus.jackson.type.JavaType.isFullyTyped()Z
at org.codehaus.jackson.map.type.ArrayType.(ArrayType.java:36)
at org.codehaus.jackson.map.type.ArrayType.construct(ArrayType.java:48)
at org.codehaus.jackson.map.type.ArrayType.addCommonTypes(ArrayType.java:78)
at org.codehaus.jackson.map.type.TypeFactory.(TypeFactory.java:43)
at org.codehaus.jackson.map.type.TypeFactory.(TypeFactory.java:15)
at org.codehaus.jackson.map.ObjectMapper.(ObjectMapper.java:42)
at com.packetloop.packetpig.loaders.pcap.protocol.DNSConversationRecordReader.(DNSConversationRecordReader.java:18)
at com.packetloop.packetpig.loaders.pcap.protocol.DNSConversationLoader$1.createRecordReader(DNSConversationLoader.java:30)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.initNextRecordReader(PigRecordReader.java:228)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.(PigRecordReader.java:109)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigInputFormat.createRecordReader(PigInputFormat.java:119)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:588)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
at org.apache.hadoop.mapred.Child.main(Child.java:170)