eth = new EthernetDecoder();
if (p.toUri().getScheme().equals("file")) {
path = p.toUri().getPath();
File file = new File(path);
is = new PcapFileInputStream(file);
} else {
Configuration config = context.getConfiguration();
FileSystem fs = FileSystem.get(p.toUri(), config);
FSDataInputStream fsdis = fs.open(p);
path = p.toString();