GitHub user nickwallen opened a pull request:

    https://github.com/apache/incubator-metron/pull/413

    METRON-654 Create RPM Installer for Profiler

    ### [METRON-654](https://issues.apache.org/jira/browse/METRON-654)
    
    The Profiler currently must be installed using the Ansible deployment 
scripts. Prior to getting the Profiler integrated with the rest of the Ambari 
installation process, we need to package the Profiler in an RPM.
    
    ### Testing
    
    I tested this change by doing the following.
    
    (1) Build the RPMs by running the following command.
    ```
    cd metron-deployment
    mvn clean package -Pbuild-rpms
    ```
    
    (2) Stand-up a host running CentOS.  I used the Bento base that is used for 
the Quick Dev environment.
    
    (3) Copy the RPMs to the host.
    ```
    scp metron-deployment/packaging/docker/rpm-docker/RPMS/noarch/metron-*.rpm 
vagrant@node1:/tmp/    
    ```
    
    (4) Install the RPMs.
    ```
    [root@node1 ~]# rpm -ivh metron-*.rpm
    Preparing...                ########################################### 
[100%]
       1:metron-solr            ########################################### [ 
11%]
       2:metron-profiler        ########################################### [ 
22%]
       3:metron-pcap            ########################################### [ 
33%]
       4:metron-parsers         ########################################### [ 
44%]
       5:metron-indexing        ########################################### [ 
56%]
       6:metron-enrichment      ########################################### [ 
67%]
       7:metron-elasticsearch   ########################################### [ 
78%]
       8:metron-data-management ########################################### [ 
89%]
       9:metron-common          ########################################### 
[100%]
    ```
    
    (5) Validate that all of the Profiler's required files exist and are valid.
    ```
    [root@node1 ~]# ls -l /usr/metron/0.3.0/config/profiler.properties
    -rw-r--r--. 1 root root 1257 Jan  3 14:59 
/usr/metron/0.3.0/config/profiler.properties
    
    [root@node1 ~]# ls -l /usr/metron/0.3.0/bin/start_profiler_topology.sh
    -rwxr-xr-x. 1 root root 1080 Nov 22 22:36 
/usr/metron/0.3.0/bin/start_profiler_topology.sh
    
    [root@node1 ~]# ls -l /usr/metron/0.3.0/flux/profiler/remote.yaml
    -rw-r--r--. 1 root root 3937 Jan  3 14:59 
/usr/metron/0.3.0/flux/profiler/remote.yaml
    
    [root@node1 ~]# ls -l /usr/metron/0.3.0/lib/metron-profiler-0.3.0-uber.jar
    -rw-r--r--. 1 root root 62959781 Jan  9 18:26 
/usr/metron/0.3.0/lib/metron-profiler-0.3.0-uber.jar
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nickwallen/incubator-metron METRON-654

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-metron/pull/413.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #413
    
----
commit 615fa67a562edb6535a90f7f7314386f76da0341
Author: Nick Allen <[email protected]>
Date:   2017-01-09T19:15:08Z

    METRON-654 Create RPM Installer for Profiler

----


---
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