一. 配置信息:
3臺centos7,一臺master,兩臺slave。(無zookeeper安裝)html
二. mesos安裝:
yum install http://repos.mesosphere.io/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm
yum install -y mesoslinux
Master:docker
vim /etc/default/mesos-master
PORT=5050
IP={masterIp}apache
vim /etc/mesos-master/cluster
ClusterNamevim
vim /etc/mesos-master/hostname
HostNamecentos
systemctl start mesos-master.service
systemctl enable mesos-master.servicebash
Slave:oop
vim /etc/default/mesos-slave
IP={slaveIp}
MASTER={masterIp}:5050/mesos
ISOLATION=cgroups/cpu,cgroups/mem,docker/runtime,filesystem/linuxcentos7
vim /etc/mesos-slave/hostname
HostNamespa
systemctl start mesos-slave.service
systemctl enable mesos-slave.service
注:更改hostname,rm -rf /var/lib/mesos/* 後,重啓。
三. 環境變量配置:
vim .bashrc
export SPARK_HOME=/opt/spark-2.4.3-bin-hadoop2.7
export PATH=$PATH:/opt/spark-2.4.3-bin-hadoop2.7/bin
export PATH=$PATH:/opt/spark-2.4.3-bin-hadoop2.7/sbin
export SPARK_LOCAL_IP=10.0.0.11
export LIBPROCESS_IP=10.0.0.11
[1] https://www.jianshu.com/p/22a5ed4db6a5[2] https://blog.csdn.net/qq_35440040/article/details/78427516[3] https://spark.apache.org/docs/latest/configuration.html[4] https://stackoverflow.com/questions/24637312/spark-driver-in-apache-spark