You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metron.apache.org by dlyle65535 <gi...@git.apache.org> on 2016/02/23 06:03:39 UTC

[GitHub] incubator-metron pull request: METRON-43: Refactor Deployment Scri...

GitHub user dlyle65535 opened a pull request:

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

    METRON-43: Refactor Deployment Scripts for Correctness and Ease of Use

    Runs with single node Vagrant, multi-node Vagrant and multi-node cloud instance of 12 nodes.
    
    Includes:
        METRON-44: passwd_less_ssh.yml overwrites authorized_keys and leaves artifacts on local host
        METRON-45: Remove host references from global variables
        METRON-43: Deployment scripts should fail fast
        METRON-47: Vagrant multi-node deployment script only deploys to one node
        METRON-32: Added Ansible role to install and load data into MySQL

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

    $ git pull https://github.com/dlyle65535/incubator-metron deploy_scripts_integration

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

    https://github.com/apache/incubator-metron/pull/28.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 #28
    
----
commit a3b85821d670b356108f945953df1a29df8b2c27
Author: rmerriman <rm...@hortonworks.com>
Date:   2016-02-16T15:20:00Z

    METRON-32: Added Ansible role to install and load data into MySQL
    
    Renamed MySQL config file because it was getting ignored by git.  Also moved MySQL install up earlier in the install process
    
    Added missing mylogin.cnf file

commit d92f6cadc68afa77bf45cd55b0294cf3612f97d3
Author: David Lyle <dl...@gmail.com>
Date:   2016-02-18T23:41:05Z

    METRON-43: Refactor Deployment Scripts for Correctness and Ease of Use
      Includes:
        METRON-44: passwd_less_ssh.yml overwrites authorized_keys and leaves artifacts on local host
        METRON-45: Remove host references from global variables
        METRON-43: Deployment scripts should fail fast
        METRON-47: Vagrant multi-node deployment script only deploys to one node
    
      Tested aginst cloud instance of 12 nodes, single node vagrant and multi-node vagrant.

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: METRON-43: Refactor Deployment Scri...

Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on the pull request:

    https://github.com/apache/incubator-metron/pull/28#issuecomment-187685605
  
    I don't see that change- which line?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: METRON-43: Refactor Deployment Scri...

Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on the pull request:

    https://github.com/apache/incubator-metron/pull/28#issuecomment-187681809
  
    Why pull all variables, even those unlikely to change, up to the inventory level?  For example, why define `metron_jar_name` in `deployment/inventory/singlenode-vagrant/group_vars/all`? 
    
    Previously these sorts of vars were pushed down into the role itself.  The logic being that these will rarely change and that the user need not worry about them.  For example, `metron_jar_name` is defined in `incubator-metron/deployment/roles/metron_streaming/vars/main.yml`.  



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: METRON-43: Refactor Deployment Scri...

Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on the pull request:

    https://github.com/apache/incubator-metron/pull/28#issuecomment-187642742
  
    Sorry- forgot to run RAT last night. Fixed it this morning. There was one file, geoip_ddl.sql, that did not pass. I corrected that by adding a license to it.
    
    I also excluded .iml files as they're .gitiignored.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: METRON-43: Refactor Deployment Scri...

Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on the pull request:

    https://github.com/apache/incubator-metron/pull/28#issuecomment-187723078
  
    Testing passed with latest commit. Thanks for looking it over!


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: METRON-43: Refactor Deployment Scri...

Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on the pull request:

    https://github.com/apache/incubator-metron/pull/28#issuecomment-187683706
  
    That wasn't my change. Oracle is used when it's provided, open-jdk is
    selected otherwise. In cases where there was no jdk without a side effect,
    I continued that pattern.
    
    On Tue, Feb 23, 2016 at 7:38 AM, nickwallen <no...@github.com>
    wrote:
    
    > Why install OpenJDK as part of deployment/roles/yaf/tasks/main.yml?
    > Previously the scripts were standardized on Oracle Java 8, which I believe
    > is preferred for HDP, no?
    >
    > —
    > Reply to this email directly or view it on GitHub
    > <https://github.com/apache/incubator-metron/pull/28#issuecomment-187682551>
    > .
    >



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: METRON-43: Refactor Deployment Scri...

Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on the pull request:

    https://github.com/apache/incubator-metron/pull/28#issuecomment-187684273
  
    Also, seeing that promisc enablement was turned off as part of this change in `deployment/vagrant/multinode-vagrant/Vagrantfile`.  This needs to be on to sniff network traffic.
    



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: METRON-43: Refactor Deployment Scri...

Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on the pull request:

    https://github.com/apache/incubator-metron/pull/28#issuecomment-187682551
  
    Why install OpenJDK as part of `deployment/roles/yaf/tasks/main.yml`?  Previously the scripts were standardized on Oracle Java 8, which I believe is preferred for HDP, no?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: METRON-43: Refactor Deployment Scri...

Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on the pull request:

    https://github.com/apache/incubator-metron/pull/28#issuecomment-187686485
  
    ```   
    # enable the hostmanager plugin
        config.hostmanager.enabled = true
     @@ -44,11 +44,6 @@ Vagrant.configure(2) do |config|
            node.vm.provider "virtualbox" do |vb|
              vb.memory = host[:memory]
              vb.cpus = host[:cpus]
     -
     -        # enable promisc mode on the network interface
     -        if host.has_key?(:promisc)
     -          vb.customize ["modifyvm", :id, "--nicpromisc#{host[:promisc]}", "allow-all"]
     -        end
            end
    ```


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: METRON-43: Refactor Deployment Scri...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: METRON-43: Refactor Deployment Scri...

Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on the pull request:

    https://github.com/apache/incubator-metron/pull/28#issuecomment-187688824
  
    Got it, thanks- I'll get that back in, move the variables and re-test.
    



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: METRON-43: Refactor Deployment Scri...

Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on the pull request:

    https://github.com/apache/incubator-metron/pull/28#issuecomment-187682851
  
    That makes sense. Unless there's something badly broken here, can we push it to a separate issue? It was a major effort getting a passing run on all three integration tests and now that I'm there, I'm reluctant to  re-run them- it's a 2 hour end-to-end and I'm a little concerned about getting back into merge-land while that's happening.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---