mesos cluster搭建
来源:互联网 发布:it分销商 编辑:程序博客网 时间:2024/05/29 09:56
部署结构
192.168.1.100 (master)
192.168.1.101 (slave)
192.168.1.102 (slave)
在三台服务器上创建非root账号grid,同时配置三台服务器ssh免密码登录。
软件版本:mesos-0.24.0-1.0.27.centos65.x86_64.rpm
软件下载地址以及jdk安装方法可以参考我的另外一篇博客
http://blog.csdn.net/github_25679381/article/details/52034995
安装mesos
rpm -ivh mesos-0.24.0-1.0.27.centos65.x86_64.rpm
配置mesos
配置文件位于/usr/etc/mesos下面
各个文件内容配置如下:
masters
192.168.1.100
slaves
192.168.1.101192.168.1.102
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
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/mesosexport MESOS_ip=10.185.81.195export MESOS_work_dir=/home/grid/working/meso
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.185.81.195:5050export MESOS_work_dir=/home/grid/working/mesos# Other options you're likely to want to set:# export MESOS_log_dir=/var/log/mesos# export MESOS_work_dir=/var/run/mesos# export MESOS_isolation=cgroups
配置hosts文件
/etc/hosts
192.168.1.100 hostname-master192.168.1.101 hostname-slave0192.168.1.101 hostname-slave1
启动mesos集群
mesos-start-cluster.sh
停止mesos集群
mesos-stop-cluster.sh
0 0
- mesos cluster搭建
- Spark on Mesos cluster mode
- Apache Mesos环境搭建
- mesos+marathon平台搭建
- mesos集群搭建
- Spark运行模式(local standalond,yarn-client,yarn-cluster,mesos-client,mesos-cluster)
- mesos+marathon环境简单搭建
- mesos 1.1.0集群搭建
- Spark on Mesos: 搭建Mesos的一些问题
- Spark on Mesos: 搭建Mesos的一些问题
- mesos
- Mesos
- fedora MySql Cluster 搭建
- Hadoop Cluster 搭建
- mysql cluster 7.1搭建
- mysql-cluster搭建
- mysql-cluster搭建
- redis-cluster的搭建
- 服务器减压
- LeetCode解题报告 1. Two Sum[easy]
- 创意多会影响关键词的质量度吗?
- Java的反射机制
- 自定义view控件之TextView可以包含两种不同的字体风格
- mesos cluster搭建
- 2016.9.3总结
- 【bzoj1061】 Noi2008—志愿者招募
- JSP
- Oulipo
- leetcode 309. Best Time to Buy and Sell Stock with Cooldown 解题报告
- Volley源码流程解析
- 关于cannot perform this action after onsaveinstancestate的解决办法
- zencart如何做好站内优化?