Github user james-sirota commented on the issue:
https://github.com/apache/metron/pull/1109
Here is what I've done so far:
Capture a random PCAP using tcpdump, place that PCAP into
/apps/metron/pcap/input on HDFS, run the service in Swager under POST
/api/v1/pcap/fixed
I send
{
"endTime":1531892977000,
"startTime":1458240269424
}
which are the right timestamps for my PCAP, and get back an error:
{
"timestamp": "2018-07-18 06:00:45",
"status": 500,
"error": "Internal Server Error",
"message": "-1",
"path": "/api/v1/pcap/fixed"
}
Which in metron-rest.log corresponds to:
Jul 18, 2018 6:00:45 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [dispatcherServlet] in context with
path [] threw exception [Request processing failed; nested exception is
java.lang.ArrayIndexOutOfBoundsException: -1] with root cause
java.lang.ArrayIndexOutOfBoundsException: -1
at
org.apache.metron.pcap.PcapFilenameHelper.getKafkaPartition(PcapFilenameHelper.java:66)
at
org.apache.metron.pcap.utils.FileFilterUtil.getFilesByPartition(FileFilterUtil.java:63)
at
org.apache.metron.pcap.utils.FileFilterUtil.getPathsInTimeRange(FileFilterUtil.java:50)
at org.apache.metron.pcap.mr.PcapJob.createJob(PcapJob.java:382)
at org.apache.metron.pcap.mr.PcapJob.query(PcapJob.java:276)
at org.apache.metron.pcap.mr.PcapJob.submit(PcapJob.java:235)
at
org.apache.metron.rest.config.PcapJobSupplier.get(PcapJobSupplier.java:38)
at
org.apache.metron.rest.config.PcapJobSupplier.get(PcapJobSupplier.java:30)
at
org.apache.metron.job.manager.InMemoryJobManager.submit(InMemoryJobManager.java:48)
at
org.apache.metron.rest.service.impl.PcapServiceImpl.fixed(PcapServiceImpl.java:64)
at
org.apache.metron.rest.controller.PcapController.fixed(PcapController.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)
at
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
---