[
https://issues.apache.org/jira/browse/METRON-743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15888751#comment-15888751
]
ASF GitHub Bot commented on METRON-743:
---------------------------------------
Github user mmiklavc commented on the issue:
https://github.com/apache/incubator-metron/pull/467
Also +1 on this. Ran the script above.
Just a note, the Vagrant quick-dev install for pcap doesn't work via
`vagrant --ansible-tags="pycapa" provision`. Not sure what others have done
here, but I ended up installing manually using the following procedure.
```
# set env vars
export PYCAPA_HOME=/opt/pycapa
export PYTHON27_HOME=/opt/rh/python27/root
# Install these packages via yum (RHEL, CentOS)
yum -y install epel-release centos-release-scl
yum -y install "@Development tools" python27 python27-scldevel
python27-python-virtualenv libpcap-devel libselinux-python
# Setup directories
mkdir $PYCAPA_HOME && chmod 755 $PYCAPA_HOME
# Create virtualenv
export LD_LIBRARY_PATH="/opt/rh/python27/root/usr/lib64"
${PYTHON27_HOME}/usr/bin/virtualenv pycapa-venv
# Copy pycapa
# copy incubator-metron/metron-sensors/pycapa from the Metron source tree
into $PYCAPA_HOME on the node you would like to install pycapa on.
# Build it
cd ${PYCAPA_HOME}/pycapa
# activate the virtualenv
source ${PYCAPA_HOME}/pycapa-venv/bin/activate
pip install -r requirements.txt
python setup.py install
# Run it
cd ${PYCAPA_HOME}/pycapa-venv/bin
pycapa --producer --topic pcap -i eth1 -k node1:6667
```
> Sort the files when reading results from Pcap
> ---------------------------------------------
>
> Key: METRON-743
> URL: https://issues.apache.org/jira/browse/METRON-743
> Project: Metron
> Issue Type: Bug
> Reporter: Casey Stella
>
> The FileSystem.listFiles() call does not return the files in sorted order,
> which we assume for all FileSystem implementations. We should sort this to
> be certain.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)