Open samchorlton opened 8 years ago
Hi @samchorlton,
It's a bit hard for me to say exactly what the problem is. I do recall hitting something like this at one point, but I don't recall the root cause.
Do you have a repo with your complete implementation?
Hi @vicenteg,
I can't easily upload it I'm afraid. I've have been doing some more investigation and if I use CombinePcapInputFormat it doesn't produce the error?
Sounds like you were able to work around the problem, then?
Hi There,
I've been trying to implement the code to see how it works and I appear to be getting an error. Would you be able to take a look and see if you can see what is causing it? If you need to see more of the code then just let me know. Thanks
My imports are:
import net.ripe.hadoop.pcap.io.PcapInputFormat import net.ripe.hadoop.pcap.packet.Packet import org.apache.spark.streaming.{Seconds, StreamingContext} import org.apache.spark._
import org.apache.hadoop.io.{LongWritable, ObjectWritable} import org.apache.hadoop.mapred.FileInputFormat import org.apache.hadoop.mapred.JobConf import org.apache.hadoop.io.Text import org.apache.hadoop.mapred.TextInputFormat
This line is causing the error:
val pcapData = ssc.fileStreamLongWritable, ObjectWritable, PcapInputFormat
Is causing the following error: