Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-958

PCAP Query job throws exception when no files returned by time range query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • 0.4.0
    • None

    Description

      bin/pcap_query.sh query -df "yyyyMMddHHmm" -st 201705162000 --query ""
      Exception in thread "main" java.lang.IllegalArgumentException: Can not create a Path from an empty string
              at org.apache.hadoop.fs.Path.checkPathArg(Path.java:126)
              at org.apache.hadoop.fs.Path.<init>(Path.java:134)
              at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.addInputPaths(FileInputFormat.java:485)
              at org.apache.metron.pcap.mr.PcapJob.createJob(PcapJob.java:285)
              at org.apache.metron.pcap.mr.PcapJob.query(PcapJob.java:237)
              at org.apache.metron.pcap.query.PcapCli.run(PcapCli.java:138)
              at org.apache.metron.pcap.query.PcapCli.main(PcapCli.java:53)
              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.apache.hadoop.util.RunJar.run(RunJar.java:233)
              at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
      

      For this particular data set, 201705161900 worked fine.

      Attachments

        Issue Links

          Activity

            People

              mmiklavcic Michael Miklavcic
              mmiklavcic Michael Miklavcic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: