Different error than before, but it still fails:

TASK [ambari_gather_facts : set_fact] ****************************************** ok: [ec2-34-210-207-190.us-west-2.compute.amazonaws.com] => {"ansible_facts": {"kibana_hosts": []}, "changed": false}

TASK [ambari_gather_facts : debug] *********************************************
ok: [ec2-34-210-207-190.us-west-2.compute.amazonaws.com] => {
"msg": "zookeeper_port = 2181, zookeeper_hosts = [u'ec2-52-43-143-124.us-west-2.compute.amazonaws.com'], zookeeper_url = ec2-52-43-143-124.us-west-2.compute.amazonaws.com:2181, kafka_broker_port = 6667, kafka_broker_hosts = [u'ec2-34-210-18-244.us-west-2.compute.amazonaws.com', u'ec2-35-164-236-192.us-west-2.compute.amazonaws.com', u'ec2-52-41-30-101.us-west-2.compute.amazonaws.com'], kafka_broker_url = ec2-34-210-18-244.us-west-2.compute.amazonaws.com:6667,ec2-35-164-236-192.us-west-2.compute.amazonaws.com:6667,ec2-52-41-30-101.us-west-2.compute.amazonaws.com:6667, metron_hosts = [u'ec2-35-164-236-192.us-west-2.compute.amazonaws.com']"
}

TASK [load_web_templates : Load ES Templates] ********************************** changed: [ec2-34-210-207-190.us-west-2.compute.amazonaws.com] => {"changed": true, "cmd": ["curl", "-s", "-w", "%{http_code}", "-u", "admin:admin", "-H", "X-Requested-By: ambari", "-X", "POST", "-d", "{ \"RequestInfo\": { \"context\": \"Install ES Template from REST\", \"command\": \"ELASTICSEARCH_TEMPLATE_INSTALL\"},\"Requests/resource_filters\": [{\"service_name\": \"METRON\",\"component_name\": \"METRON_INDEXING\",\"hosts\" : \"ec2-35-164-236-192.us-west-2.compute.amazonaws.com\"}]}", "http://ec2-34-210-207-190.us-west-2.compute.amazonaws.com:8080/api/v1/clusters/metron/requests";], "delta": "0:00:00.049367", "end": "2017-05-26 21:33:34.767106", "failed": false, "failed_when_result": false, "rc": 0, "start": "2017-05-26 21:33:34.717739", "stderr": "", "stdout": "{\n \"href\" : \"http://ec2-34-210-207-190.us-west-2.compute.amazonaws.com:8080/api/v1/clusters/metron/requests/14\",\n \"Requests\" : {\n \"id\" : 14,\n \"status\" : \"Accepted\"\n }\n}202", "stdout_lines": ["{", " \"href\" : \"http://ec2-34-210-207-190.us-west-2.compute.amazonaws.com:8080/api/v1/clusters/metron/requests/14\",";, " \"Requests\" : {", " \"id\" : 14,", " \"status\" : \"Accepted\"", " }", "}202"], "warnings": []}

TASK [load_web_templates : Load Kibana Dashboard] ****************************** fatal: [ec2-34-210-207-190.us-west-2.compute.amazonaws.com]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: list object has no element 0\n\nThe error appears to have been in '/root/metron/metron-deployment/roles/load_web_templates/tasks/main.yml': line 26, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Load Kibana Dashboard\n ^ here\n"} to retry, use: --limit @/root/metron/metron-deployment/amazon-ec2/playbook.retry

PLAY RECAP ********************************************************************* ec2-34-210-18-244.us-west-2.compute.amazonaws.com : ok=41 changed=27 unreachable=0 failed=0 ec2-34-210-207-190.us-west-2.compute.amazonaws.com : ok=80 changed=31 unreachable=0 failed=1 ec2-34-211-19-168.us-west-2.compute.amazonaws.com : ok=41 changed=27 unreachable=0 failed=0 ec2-35-164-236-192.us-west-2.compute.amazonaws.com : ok=47 changed=31 unreachable=0 failed=0 ec2-52-41-30-101.us-west-2.compute.amazonaws.com : ok=41 changed=27 unreachable=0 failed=0 ec2-52-43-143-124.us-west-2.compute.amazonaws.com : ok=41 changed=27 unreachable=0 failed=0 localhost : ok=16 changed=11 unreachable=0 failed=0

root@ip-10-0-10-6:~/metron/metron-deployment/amazon-ec2#

On 2017-05-26 11:59, Michael Miklavcic wrote:
Maybe you could re-purpose the playbook.yml for the 10-node install -
comment out some of the host creation lines and move the host types where
you want them installed, e.g.

From this

  tasks:
    - include: tasks/create-keypair.yml
    - include: tasks/create-vpc.yml
    - include: tasks/create-open-inbound-security-group.yml
    - include: tasks/create-open-outbound-security-group.yml
    - 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 this (6-node)

  tasks:
    - include: tasks/create-keypair.yml
    - include: tasks/create-vpc.yml
    - include: tasks/create-open-inbound-security-group.yml
    - include: tasks/create-open-outbound-security-group.yml
    - include: tasks/create-hosts.yml host_count=1
host_type=sensors,ambari_master,ec2,monit,zeppelin,search,web
    - include: tasks/create-hosts.yml host_count=3
host_type=ambari_slave,ec2
- include: tasks/create-hosts.yml host_count=1 host_type= ambari_slave
,pcap_server,monit,ec2
    - include: tasks/create-hosts.yml host_count=1
host_type=ambari_slave,enrichment,metron,ec2,zeppelin

Of course, this is just to demonstrate re-locating items, not necessarily
how you would want to lay them out.

Best,
Mike Miklavcic


On Fri, May 26, 2017 at 11:28 AM, Laurens Vets <laur...@daemon.be> wrote:

I'm trying to install Metron in AWS but with fewer hosts than the default 10 node cluster install... So far no luck. Whatever I do, it always ends in
errors...


On 2017-05-26 10:16, David Lyle wrote:

I'm gonna to venture a 'no' simply because I don't know what that is.
Afaik, single_node_vm.yml was never used with AWS. What are you trying to
do?

-D...


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

Is AWS single_node_vm still supported?


Reply via email to