1. 程式人生 > >Ansible自動化部署Spark叢集

Ansible自動化部署Spark叢集

關於ansible請參考ansible中文權威指南

 

線上安裝ansible

yum -y install ansible

 

安裝環境:

JAVA

SCALA

SPARK

目錄結構

[[email protected] spark]# pwd
/opt/ansible/spark
[[email protected] spark]# ls
files  tasks  templates  vars
[[email protected] spark]# ls files/
spark-2.2.0-bin-hadoop2.7.tgz


[[email protected] spark]# ls tasks/
main.yml
[[email protected] spark]# ls templates/
slaves.j2  spark-env.sh.j2
[[email protected] spark]# ls vars/
main.yml

 


將spark-2.2.0-bin-hadoop2.7.tgz 放入到files目錄下