标签:pac bash als std san 配置文件 ase contains 任务调度
1. 下载 mesos centos65.x86_64.rpm 版本。mesos版本对应举例: mesos-1.0.0-2.0.89.centos65.x86_64.rpm ,1.0.0本号,2.0.89对应rpm包版本号,centos65.x86_64 操作系统。
2. 安装 mesos : rpm -ivh mesos-1.0.0-2.0.89.centos65.x86_64.rpm
3. 配置 mesos 配置文件(集群所有服务器)
3.1 进入目录 /usr/etc/mesos 分别创建 masters,slaves,mesos-deploy-env.sh,mesos-master-env.sh,mesos-slave-env.sh (复制相应的模版即可)
3.2 编辑masters
10.110.110.10
3.3 编辑slaves
10.110.110.11 10.110.110.12
3.4 编辑mesos-deploy-env.sh
#!/usr/bin/env bash # This file contains environment variables that modify how the deploy # scripts are run. For example, it can be used to configure SSH # options (see below). # Options for SSH. export SSH_OPTS="-o StrictHostKeyChecking=no -o ConnectTimeout=2" # Use sudo for launching masters and slaves. #export DEPLOY_WITH_SUDO=1
3.5 编辑mesos-master-env.sh
# This file contains environment variables that are passed to mesos-master. # To get a description of all options run mesos-master --help; any option # supported as a command-line option is also supported as an environment # variable. # Some options you‘re likely to want to set: # export MESOS_log_dir=/var/log/mesos export MESOS_ip=10.110.110.10 export MESOS_work_dir=/home/hbase/work/mesos
3.6 编辑mesos-slave-env.sh
# This file contains environment variables that are passed to mesos-slave. # To get a description of all options run mesos-slave --help; any option # supported as a command-line option is also supported as an environment # variable. # You must at least set MESOS_master. # The mesos master URL to contact. Should be host:port for # non-ZooKeeper based masters, otherwise a zk:// or file:// URL. export MESOS_master=10.110.110.105050 export MESOS_work_dir=/home/hbase/work/mesos # Other options you‘re likely to want to set:
4. 配置服务器之间的免密码登陆,具体查看:服务器免密码登陆 篇。
5. 启动mesos集群:mesos-start-cluster.sh
6. 停止mesos集群:mesos-stop-cluster.sh
标签:pac bash als std san 配置文件 ase contains 任务调度
原文地址:http://www.cnblogs.com/SkeyJIA/p/7101895.html