Hbase集群搭建一(Mesos搭建)
Posted 阿波罗一号
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Hbase集群搭建一(Mesos搭建)相关的知识,希望对你有一定的参考价值。
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
以上是关于Hbase集群搭建一(Mesos搭建)的主要内容,如果未能解决你的问题,请参考以下文章
两地三中心,搭建一套k8s集群还是各区域搭建各自k8s集群?
实战手把手教你从 0 到 1 搭建一套 RocketMQ 集群
基于Docker的Zookeeper+Hadoop(HA)+hbase(HA)搭建
(十九)从零开始搭建k8s集群——使用KubeSphere管理平台搭建一套微服务的压力测试性能监控平台(Grafana8.5.2+influxdb2.2.0+Jmeter5.4.1)
(十九)从零开始搭建k8s集群——使用KubeSphere管理平台搭建一套微服务的压力测试性能监控平台(Grafana8.5.2+influxdb2.2.0+Jmeter5.4.1)