Skip to content

Instantly share code, notes, and snippets.

@vicenteg
Created June 6, 2014 12:35
Show Gist options
  • Save vicenteg/d658b5fcb079e4db0aa7 to your computer and use it in GitHub Desktop.
Save vicenteg/d658b5fcb079e4db0aa7 to your computer and use it in GitHub Desktop.
$ ansible-playbook -i ~/Dropbox/Code/mapr/singlenode/playbooks/vgonzalez_cluster.hosts -u root playbook.yml
PLAY [fileserver] *************************************************************
GATHERING FACTS ***************************************************************
ok: [ec2-107-23-70-48.compute-1.amazonaws.com]
ok: [ec2-107-23-70-95.compute-1.amazonaws.com]
ok: [ec2-107-23-69-30.compute-1.amazonaws.com]
ok: [ec2-107-23-70-46.compute-1.amazonaws.com]
ok: [ec2-107-23-70-71.compute-1.amazonaws.com]
TASK: [rshaw | Find all Jobtrackers in the cluster] ***************************
changed: [ec2-107-23-70-48.compute-1.amazonaws.com]
changed: [ec2-107-23-70-46.compute-1.amazonaws.com]
changed: [ec2-107-23-69-30.compute-1.amazonaws.com]
changed: [ec2-107-23-70-95.compute-1.amazonaws.com]
changed: [ec2-107-23-70-71.compute-1.amazonaws.com]
TASK: [rshaw | debug var=jobtrackers] *****************************************
ok: [ec2-107-23-69-30.compute-1.amazonaws.com] => {
"item": "",
"jobtrackers": {
"changed": true,
"cmd": "maprcli node list -columns svc | grep jobtracker | awk {'print $2'} ",
"delta": "0:00:02.420494",
"end": "2014-06-06 12:33:45.511811",
"invocation": {
"module_args": "maprcli node list -columns svc | grep jobtracker | awk {'print $2'}",
"module_name": "shell"
},
"item": "",
"rc": 0,
"start": "2014-06-06 12:33:43.091317",
"stderr": "",
"stdout": "ip-172-16-1-22",
"stdout_lines": [
"ip-172-16-1-22"
]
}
}
ok: [ec2-107-23-70-46.compute-1.amazonaws.com] => {
"item": "",
"jobtrackers": {
"changed": true,
"cmd": "maprcli node list -columns svc | grep jobtracker | awk {'print $2'} ",
"delta": "0:00:02.415013",
"end": "2014-06-06 12:33:45.490533",
"invocation": {
"module_args": "maprcli node list -columns svc | grep jobtracker | awk {'print $2'}",
"module_name": "shell"
},
"item": "",
"rc": 0,
"start": "2014-06-06 12:33:43.075520",
"stderr": "",
"stdout": "ip-172-16-1-22",
"stdout_lines": [
"ip-172-16-1-22"
]
}
}
ok: [ec2-107-23-70-48.compute-1.amazonaws.com] => {
"item": "",
"jobtrackers": {
"changed": true,
"cmd": "maprcli node list -columns svc | grep jobtracker | awk {'print $2'} ",
"delta": "0:00:02.249975",
"end": "2014-06-06 12:33:45.315258",
"invocation": {
"module_args": "maprcli node list -columns svc | grep jobtracker | awk {'print $2'}",
"module_name": "shell"
},
"item": "",
"rc": 0,
"start": "2014-06-06 12:33:43.065283",
"stderr": "",
"stdout": "ip-172-16-1-22",
"stdout_lines": [
"ip-172-16-1-22"
]
}
}
ok: [ec2-107-23-70-95.compute-1.amazonaws.com] => {
"item": "",
"jobtrackers": {
"changed": true,
"cmd": "maprcli node list -columns svc | grep jobtracker | awk {'print $2'} ",
"delta": "0:00:02.457218",
"end": "2014-06-06 12:33:45.502939",
"invocation": {
"module_args": "maprcli node list -columns svc | grep jobtracker | awk {'print $2'}",
"module_name": "shell"
},
"item": "",
"rc": 0,
"start": "2014-06-06 12:33:43.045721",
"stderr": "",
"stdout": "ip-172-16-1-22",
"stdout_lines": [
"ip-172-16-1-22"
]
}
}
ok: [ec2-107-23-70-71.compute-1.amazonaws.com] => {
"item": "",
"jobtrackers": {
"changed": true,
"cmd": "maprcli node list -columns svc | grep jobtracker | awk {'print $2'} ",
"delta": "0:00:02.610532",
"end": "2014-06-06 12:33:45.698317",
"invocation": {
"module_args": "maprcli node list -columns svc | grep jobtracker | awk {'print $2'}",
"module_name": "shell"
},
"item": "",
"rc": 0,
"start": "2014-06-06 12:33:43.087785",
"stderr": "",
"stdout": "ip-172-16-1-22",
"stdout_lines": [
"ip-172-16-1-22"
]
}
}
TASK: [rshaw | Create an array of Jobtrackers to pass as vars] ****************
changed: [ec2-107-23-70-95.compute-1.amazonaws.com]
changed: [ec2-107-23-70-48.compute-1.amazonaws.com]
changed: [ec2-107-23-70-71.compute-1.amazonaws.com]
changed: [ec2-107-23-69-30.compute-1.amazonaws.com]
changed: [ec2-107-23-70-46.compute-1.amazonaws.com]
TASK: [rshaw | debug var=jobtracker_array] ************************************
ok: [ec2-107-23-70-95.compute-1.amazonaws.com] => {
"item": "",
"jobtracker_array": {
"changed": true,
"cmd": "echo ip-172-16-1-22 | sed ':a;N;$!ba;s/\\n/ /g' ",
"delta": "0:00:00.013068",
"end": "2014-06-06 12:33:46.380338",
"invocation": {
"module_args": "echo ip-172-16-1-22 | sed ':a;N;$!ba;s/\\n/ /g'",
"module_name": "shell"
},
"item": "",
"rc": 0,
"start": "2014-06-06 12:33:46.367270",
"stderr": "",
"stdout": "ip-172-16-1-22",
"stdout_lines": [
"ip-172-16-1-22"
]
}
}
ok: [ec2-107-23-70-46.compute-1.amazonaws.com] => {
"item": "",
"jobtracker_array": {
"changed": true,
"cmd": "echo ip-172-16-1-22 | sed ':a;N;$!ba;s/\\n/ /g' ",
"delta": "0:00:00.013079",
"end": "2014-06-06 12:33:46.527347",
"invocation": {
"module_args": "echo ip-172-16-1-22 | sed ':a;N;$!ba;s/\\n/ /g'",
"module_name": "shell"
},
"item": "",
"rc": 0,
"start": "2014-06-06 12:33:46.514268",
"stderr": "",
"stdout": "ip-172-16-1-22",
"stdout_lines": [
"ip-172-16-1-22"
]
}
}
ok: [ec2-107-23-70-71.compute-1.amazonaws.com] => {
"item": "",
"jobtracker_array": {
"changed": true,
"cmd": "echo ip-172-16-1-22 | sed ':a;N;$!ba;s/\\n/ /g' ",
"delta": "0:00:00.012882",
"end": "2014-06-06 12:33:46.442511",
"invocation": {
"module_args": "echo ip-172-16-1-22 | sed ':a;N;$!ba;s/\\n/ /g'",
"module_name": "shell"
},
"item": "",
"rc": 0,
"start": "2014-06-06 12:33:46.429629",
"stderr": "",
"stdout": "ip-172-16-1-22",
"stdout_lines": [
"ip-172-16-1-22"
]
}
}
ok: [ec2-107-23-69-30.compute-1.amazonaws.com] => {
"item": "",
"jobtracker_array": {
"changed": true,
"cmd": "echo ip-172-16-1-22 | sed ':a;N;$!ba;s/\\n/ /g' ",
"delta": "0:00:00.012799",
"end": "2014-06-06 12:33:46.463118",
"invocation": {
"module_args": "echo ip-172-16-1-22 | sed ':a;N;$!ba;s/\\n/ /g'",
"module_name": "shell"
},
"item": "",
"rc": 0,
"start": "2014-06-06 12:33:46.450319",
"stderr": "",
"stdout": "ip-172-16-1-22",
"stdout_lines": [
"ip-172-16-1-22"
]
}
}
ok: [ec2-107-23-70-48.compute-1.amazonaws.com] => {
"item": "",
"jobtracker_array": {
"changed": true,
"cmd": "echo ip-172-16-1-22 | sed ':a;N;$!ba;s/\\n/ /g' ",
"delta": "0:00:00.011742",
"end": "2014-06-06 12:33:46.438937",
"invocation": {
"module_args": "echo ip-172-16-1-22 | sed ':a;N;$!ba;s/\\n/ /g'",
"module_name": "shell"
},
"item": "",
"rc": 0,
"start": "2014-06-06 12:33:46.427195",
"stderr": "",
"stdout": "ip-172-16-1-22",
"stdout_lines": [
"ip-172-16-1-22"
]
}
}
TASK: [rshaw | Create Jobtracker host group] **********************************
ok: [ec2-107-23-70-95.compute-1.amazonaws.com] => (item=ip-172-16-1-22)
PLAY RECAP ********************************************************************
ec2-107-23-69-30.compute-1.amazonaws.com : ok=6 changed=2 unreachable=0 failed=0
ec2-107-23-70-46.compute-1.amazonaws.com : ok=6 changed=2 unreachable=0 failed=0
ec2-107-23-70-48.compute-1.amazonaws.com : ok=6 changed=2 unreachable=0 failed=0
ec2-107-23-70-71.compute-1.amazonaws.com : ok=6 changed=2 unreachable=0 failed=0
ec2-107-23-70-95.compute-1.amazonaws.com : ok=6 changed=2 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment