Github user mmiklavc commented on the issue:

    https://github.com/apache/metron/pull/593
  
    Here are some instructions for getting pycapa setup
    
    ```
    Installing pycapa
    ====================
    env vars
    PYCAPA_HOME=/opt/pycapa
    PYTHON27_HOME =/opt/rh/python27/root
    
    Install these packages via yum (RHEL, CentOS)
        epel-release
        centos-release-scl
        "@Development tools"
        python27
        python27-scldevel
        python27-python-virtualenv
        libpcap-devel
        libselinux-python
    
    $ 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
    
    Install librdkafka
    https://gist.github.com/nickwallen/0ed90197c3e45527147c30614d3b4432#pycapa
    
    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 $ETH_INTERFACE -k $KAFKA_BROKER:6667
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to