当前位置: 首页 > news >正文

湖北建设厅考试网站深圳网架制作

湖北建设厅考试网站,深圳网架制作,上海中学排名,重庆要做网站推广1.服务器规划 zookeeper 版本3.8.4 2.预先准备 2.1.ssh免密登录 ssh-keygen -t rsa2.2 jdk 安装 略 2.3 配置host sudo vim /etc/hosts10.128.0.18 hadoop01 10.128.0.21 hadoop02 10.128.0.22 hadoop03 前面为机器对应的内网ip。 3.zookeeper配置 创建zkData目录 m…

1.服务器规划

zookeeper 版本3.8.4

2.预先准备

2.1.ssh免密登录

ssh-keygen -t rsa

2.2 jdk 安装

2.3 配置host

sudo vim /etc/hosts

10.128.0.18 hadoop01
10.128.0.21 hadoop02
10.128.0.22 hadoop03

前面为机器对应的内网ip。

3.zookeeper配置

创建zkData目录

mkdir -p /opt/data/zk/zkData

在目录下创建文件myid,内容为编号数字1~N。每台机器一个数字。

vim myid

1
在文件中添加与 server 对应的编号(注意:上下不要有空行,左右不要有空格)。

修改配置zoo.cfg文件
改conf 这个目录下的 zoo_sample.cfg 为 zoo.cfg

zoo_sample.cfg zoo.cfg

修改数据存储路径配置和增加服务器信息

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=/opt/data/zk/zkData
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# https://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1## Metrics Providers
#
# https://prometheus.io Metrics Exporter
#metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider
#metricsProvider.httpHost=0.0.0.0
#metricsProvider.httpPort=7000
#metricsProvider.exportJvmInfo=trueserver.1=hadoop01:2888:3888
server.2=hadoop02:2888:3888
server.3=hadoop03:2888:3888

4.启动集群

配置环境变量后,在每台机器上启动zkServer。

zkServer.sh start

验证zkServer状态

zkServer.sh status
http://www.dtcms.com/a/429978.html

相关文章:

  • 免费网站后台模版WordPress网站远程访问
  • 企业网站建设合同书模板企业网站建立要做的准备
  • 免费找客户网站爱站在线关键词挖掘
  • 好的网站建设专业公司nginx wordpress.conf
  • 岳阳建网站帮别人做网站的公司是外包吗
  • 建设一个网站的工作方案做网站之前要安装什么
  • 英文旅游网站建设三种常见的网络营销方式
  • 建设工程质量+协会网站wordpress小说采集插件
  • 合肥专业做公司网站wordpress画廊怎么用
  • 品牌设计案例网站wordpress 国内不使用
  • 做分析图网站wordpress 企业站 模板
  • 利川做网站网站建设资源kindle
  • 福州php做网站网站自己做服务器划算吗
  • 智云鸟网站建设网站开发毕设答辩
  • 平度网站建设ld4嘉鱼网站建设前十
  • 坛墨网站建设个人网站如何建立
  • 成都解放号网站建设河南省建设监理协会网站证书查询
  • 上海网站建设高端定制网络服务公司阿里巴巴网站建设教程视频
  • 大型网站建设技巧如何下载和安装wordpress
  • 江门网站推广优化龙岩网红桥
  • 一套网站源码多少钱网站正能量免费下载
  • 怎样建造网站模特公司网站源码
  • 淘宝网站开发店铺什么类别深圳效果图制作公司
  • 网站备案全国合作拍照点 腾讯云网站开发过程中遇到的问题
  • 网站上的图片怎么替换怎样从网上注册公司
  • 网站霸屏对网站好吗做网站推广的销售发的朋友圈
  • asp网站301余姚做百度网站
  • 网站模板漏洞wordpress无刷新分页
  • 网站页面设计欣赏申请网站空间
  • 长页在线制作网站宿州网站制作