Playbook for cloudera hadoop auto install
cluster.yml
install cloudera manager server and agent playbookclient.yml
install hadoop client use cluster config playbookkdc.yml
install kerberos kdc playbook
Host Group | Description |
---|---|
local | localhost |
master | the host will be install cloudera manager server |
slave | the host will be install cloudera manager agent |
client | the host will be install hadoop client |
kdc | the host will be install kerberos kdc |
Role | Description |
---|---|
ntp |
init ntp server |
kdc |
init kdc server |
common |
init host(thp,swappiness,firewall,/etc/hosts...) |
install_scm_common |
install cloudera manager common packages(jdk..) |
install_scm_server |
install cloudera manager server packages |
install_scm_agent |
install cloudera manager agent packages |
install_client |
install hadoop client |
download_cdh_management_pkg |
download cloudera management packages to localhost |
download_cdh_parcel_pkg |
download cloudera cdh parcel packages to server hosts |
group_vars/all
: global varstools/install_ansible.sh
: a bash script which can install ansible on localhostplaybooks/*
: test playbooks
-
install cluster
ansible-playbook -i hosts cluster.yml -k