What host groups did ec2-34-210-245-155.us-west-2.compute.amazonaws.com get
assigned to?  You can look at the labels that get attached to the host in
the EC2 web interface.

I have a feeling it has something to do with the Ambari blueprint that is
used (see metron-deployment/roles/ambari_config/vars/small_cluster.yml).
You probably need to customize or define your own blueprint.

WARNING:  Please know that the automated EC2 setup is only for disposable,
short-lived, development/testing purposes.  It is not at all secure.

If you are wanting to run Metron in AWS for any period of time, a better
approach is to define your VPC, spin up your EC2 hosts, install Ambari,
then use Metron's MPack to install Metron.








On Thu, May 25, 2017 at 1:00 PM, Laurens Vets <laur...@daemon.be> wrote:

> Deploying the standard 10 instance setup works. However, for our current
> needs, 10 m4.xlarge instances seem overkill and we want to deploy Metron on
> only 5 hosts for now.
>
> I would think that editing metron/metron-deployment/amazon-ec2/playbook.yml
> would be enough. I changed the following:
>
>     - include: tasks/create-hosts.yml host_count=1
> host_type=sensors,ambari_master,ec2,monit
>     - include: tasks/create-hosts.yml host_count=4
> host_type=ambari_slave,ec2
>     - include: tasks/create-hosts.yml host_count=1
> host_type=pcap_server,monit,ec2
>     - include: tasks/create-hosts.yml host_count=1
> host_type=ambari_slave,enrichment,metron,ec2,zeppelin
>     - include: tasks/create-hosts.yml host_count=2
> host_type=ambari_slave,search,ec2
>     - include: tasks/create-hosts.yml host_count=1
> host_type=ambari_slave,web,ec2
>
> to:
>
>     - include: tasks/create-hosts.yml host_count=1
> host_type=sensors,ambari_master,ec2,monit
>     - include: tasks/create-hosts.yml host_count=1
> host_type=pcap_server,monit,ec2
>     - include: tasks/create-hosts.yml host_count=1
> host_type=ambari_slave,enrichment,metron,ec2,zeppelin
>     - include: tasks/create-hosts.yml host_count=2
> host_type=ambari_slave,ec2
>     - include: tasks/create-hosts.yml host_count=1
> host_type=ambari_slave,web,search,ec2
>
> But now deployment fails with:
>
> TASK [ambari_config : Install python-requests]
> *********************************
> ok: [ec2-34-211-7-200.us-west-2.compute.amazonaws.com] => {"attempts": 1,
> "changed": false, "msg": "", "rc": 0, "results":
> ["python-requests-2.6.0-3.el6.noarch providing python-requests is already
> installed"]}
>
> TASK [ambari_config : check if ambari-server is up on
> ec2-34-211-7-200.us-west-2.compute.amazonaws.com:8080] ***
> ok: [ec2-34-211-7-200.us-west-2.compute.amazonaws.com] => {"changed":
> false, "elapsed": 120, "path": null, "port": 8080, "search_regex": null,
> "state": "started"}
>
> TASK [ambari_config : Deploy cluster with Ambari;
> http://ec2-34-211-7-200.us-west-2.compute.amazonaws.com:8080] ***
> fatal: [ec2-34-211-7-200.us-west-2.compute.amazonaws.com]: FAILED! =>
> {"changed": false, "failed": true, "msg": "Ambari client exception
> occurred: Could not create cluster: request code 400,
>  request message {\n  \"status\" : 400,\n  \"message\" : \"Topology
> validation failed: org.apache.ambari.server.topology.InvalidTopologyException:
> The following hosts are mapped to multiple host groups: [
> ec2-34-210-245-155.us-west-2.compute.amazonaws.com]. Be aware that host
> names are converted to lowercase, case differences do not matter in Ambari
> deployments.\"\n}"}
>         to retry, use: --limit @/root/metron/metron-deploymen
> t/amazon-ec2/playbook.retry
>
> PLAY RECAP ************************************************************
> *********
> ec2-34-210-137-42.us-west-2.compute.amazonaws.com : ok=41   changed=27
>  unreachable=0    failed=0
> ec2-34-210-245-155.us-west-2.compute.amazonaws.com : ok=47   changed=31
>  unreachable=0    failed=0
> ec2-34-211-3-80.us-west-2.compute.amazonaws.com : ok=17   changed=8
> unreachable=0    failed=0
> ec2-34-211-7-200.us-west-2.compute.amazonaws.com : ok=48   changed=28
>  unreachable=0    failed=1
> ec2-35-165-165-255.us-west-2.compute.amazonaws.com : ok=41   changed=27
>  unreachable=0    failed=0
> ec2-54-70-66-181.us-west-2.compute.amazonaws.com : ok=41   changed=27
>  unreachable=0    failed=0
> localhost                  : ok=18   changed=13   unreachable=0    failed=0
>
> Any idea what might be going on? Did I miss a setting somewhere else?
>

Reply via email to