码迷,mamicode.com
首页 > 其他好文 > 详细

Hbase集群搭建一(Mesos搭建)

时间:2017-07-01 12:47:33      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:pac   bash   als   std   san   配置文件   ase   contains   任务调度   

服务器准备:下述内容绑定 /etc/hosts
    10.110.110.10 master
    10.110.110.11 slave1
    10.110.110.12 slave2
 
操作用户准备:root,hbase
 
Mesos:分布式内核系统,apache mesos 在整个数据中心根据资源利用率和资源占用情况在整个数据中心进行任务调度。利用zookeeper实现master和slave的高可用
 
开始安装 Mesos
 
 
使用 useradd -d /home/hbase -m hbase 创建用户,同时创建用户目录

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 youre 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 youre likely to want to set:

4. 配置服务器之间的免密码登陆,具体查看:服务器免密码登陆 篇。

5. 启动mesos集群:mesos-start-cluster.sh

6. 停止mesos集群:mesos-stop-cluster.sh

Hbase集群搭建一(Mesos搭建)

标签:pac   bash   als   std   san   配置文件   ase   contains   任务调度   

原文地址:http://www.cnblogs.com/SkeyJIA/p/7101895.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!