Hi,
I'm using Metron 0.4.2 to run pcap_query.sh. From reading the documents, the default output directory is /tmp if -bop is not specified. I tried using default as well as specifying -bop, but I always get Permission denied. If it's trying to write to /tmp, then any user has permission to write. I also checked hdfs /tmp and that's also a true statement that any user can write.
I try to dig into the code, but it's not obvious to me where is it attempting to write the output file. I tried to run as hdfs/metron/storm user, but all ends with the same error. Thank you in advance for your help.
18/02/05 13:37:29 ERROR query.PcapCli: Unable to write filejava.io.FileNotFoundException: pcap-data-201802051835-9b5f3448c9914581a78f705e4c3b4de2+0001.pcap (Permission denied)
at java.io.FileOutputStream.open0(Native Method)at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at org.apache.metron.pcap.query.ResultsWriter.write(ResultsWriter.java:32)
at org.apache.metron.pcap.query.PcapCli.run(PcapCli.java:167)
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)