当前位置:网站首页>Data warehouse 4.0 notes - user behavior data collection II
Data warehouse 4.0 notes - user behavior data collection II
2022-07-23 11:44:00 【Silky】
1 Zookeeper install
[[email protected] software]$ tar -zxvf apache-zookeeper-3.5.7-bin.tar.gz -C /opt/module/


Change the name , Only the corresponding version number is left 
[[email protected] module]$ cd zookeeper-3.5.7/
[[email protected] zookeeper-3.5.7]$ mkdir zkData
[[email protected] zookeeper-3.5.7]$ cd zkData/
[[email protected] zkData]$ vim myid


distribution
[[email protected] zkData]$ xsync myid
And separately in hadoop103、hadoop104 Modify the myid In file The content is 3、4


To configure zoo.cfg file
[[email protected] conf]$ mv zoo_sample.cfg zoo.cfg

As it was 
Modify the data storage path configuration
dataDir=/opt/module/zookeeper-3.5.7/zkData
Add the following configuration
#######################cluster##########################
server.2=hadoop102:2888:3888
server.3=hadoop103:2888:3888
server.4=hadoop104:2888:3888


stay 103 Check it out 
The configuration. , Start it up
[[email protected] zookeeper-3.5.7]$ bin/zkServer.sh start
[[email protected] zookeeper-3.5.7]$ bin/zkServer.sh start
[[email protected] zookeeper-3.5.7]$ bin/zkServer.sh start
View the overall process 
Check the status
[[email protected] zookeeper-3.5.7]$ bin/zkServer.sh status



2 ZK Cluster start stop script
stay hadoop102 Of /home/atguigu/bin Create script in directory

[[email protected] bin]$ vim zk.sh
Write the following in the script
#!/bin/bash
case $1 in
"start"){
for i in hadoop102 hadoop103 hadoop104
do
echo ---------- zookeeper $i start-up ------------
ssh $i "/opt/module/zookeeper-3.5.7/bin/zkServer.sh start"
done
};;
"stop"){
for i in hadoop102 hadoop103 hadoop104
do
echo ---------- zookeeper $i stop it ------------
ssh $i "/opt/module/zookeeper-3.5.7/bin/zkServer.sh stop"
done
};;
"status"){
for i in hadoop102 hadoop103 hadoop104
do
echo ---------- zookeeper $i state ------------
ssh $i "/opt/module/zookeeper-3.5.7/bin/zkServer.sh status"
done
};;
esac

Check the status 


边栏推荐
- Php+ code cloud code hook automatically updates online code
- xtu-ctf Challenges-Reverse 1、2
- The 6th "Blue Hat Cup" National College Students' Cyber Security Skills Competition - preliminary writeup
- mysql树形结构递归查询
- Development of digital collection system: what are the main features of NFT?
- 文件上传漏洞原理
- 数仓4.0笔记——用户行为数据采集三
- Typescript common types
- NFT digital collection development: Jingdong "Qida bear takes you to the capital" tourism package
- [uiautomation] key instructions (and three call methods) + common mouse actions +sendkeys+inspect learning
猜你喜欢

General Query & paging code

quartz2.2简单调度Job

MySQL account management & four engines & database and table building

Phxpaxos installation and compilation process

NFT数字藏品系统开发:徐悲鸿美术馆通过数字藏品平台亮相

蚂蚁链NFT数字藏品DAPP商城系统定制开发

NFT digital collection system development: Xu Beihong Art Museum unveiled through the digital collection platform

MySQL password free login settings

Preliminary study on DC-1 shooting range

通用查询&分页代码
随机推荐
Preliminary study on DC-1 shooting range
MySQL password free login settings
NFT digital collection system development: the combination of music and NFT
Laravel API interface + token authentication login
[hudi]hudi compilation and simple use of Hudi & spark and Hudi & Flink
自定义MVC(下)
Upload lab level 1-4
DVWA learning notes
window运行gradle build -- --stacktrace出现找不到文件framework-4.3.0.BUILD-SNAPSHOT-schema.zip异常
xtu-ctf Challenges-Reverse 1、2
数字藏品开发/数字藏品系统开发解决方案
美联储理事沃勒:去中心化金融最终可能会改变传统金融市场
Quartz2.2 simple scheduling job
quartz2.2简单调度Job
CTF-web 常用软件安装及环境搭建
MySQL functions & views & import and export
Development of digital collection system: what are the main features of NFT?
按照日期进行累加sql
Nepctf 2022 misc < check in question > (extreme doll)
MySQL sorts by Chinese field initials