赞
踩
yum
命令在线安装yum install -y java-1.8.0-openjdk.x86_64
sudo vi /etc/profile
export JAVA\_HOME=/usr/local/jdk1.8.0_291/
export JRE\_HOME=${JAVA\_HOME}/jre
export CLASSPATH=.:${JAVA\_HOME}/lib:${JRE\_HOME}/lib
export PATH=${JAVA\_HOME}/bin:$PATH
sudo source /etc/profile
apache-zookeeper-3.5.9-bin.tar.gz
上传到服务器/usr/local/
目录下tar -zxvf apache-zookeeper-3.5.9-bin.tar.gz -C /usr/local/
zookeeper
mv apache-zookeeper-3.5.9-bin zookeeper
zookeeper
配置文件 usr/local/zookeeper/conf/
zoo_sample.cfg
配置文件重命名为 zoo.cfg
mv 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. # 配置zookeeper数据存放路径 dataDir=/tmp/zookeeper # 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. # # http://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
zookeeper
目录下创建 zookeeper
数据和日志的存放目录,并且添加文件读写权限mkdir data
sudo chmod 777 data
mkdir logs
sudo chmod 777 logs
dataDir=/usr/local/zookeeper/data
dataLogDir=/usr/local/zookeeper/logs
# 集群配置 2888:选举端口 3888:投票端口
server.1=server001:2888:3888
server.2=server002:2888:3888
server.3=server003:2888:3888
hostnamectl
sudo hostnamectl set-hostname server001
/usr/local/zookeeper/data
数据目录添加这台机器集群的唯一标识1
myid
里面的数据个service一致
echo "1" > myid
host
文件 vi /etc/hosts
添加三台集群的主机名和IP地址192.168.204.130 server001
192.168.204.131 server002
192.168.204.132 server003
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数大数据工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年大数据全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上大数据开发知识点,真正体系化!
由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新
如果你觉得这些内容对你有帮助,可以添加VX:vip204888 (备注大数据获取)
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上大数据开发知识点,真正体系化!
由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新
如果你觉得这些内容对你有帮助,可以添加VX:vip204888 (备注大数据获取)
[外链图片转存中…(img-gLyHpUrA-1712866595006)]
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。