- 浏览: 2540743 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Kafka Cluster 2019(1)ZooKeeper Cluster 3.5.5
Set up 2*N+1 Cluster for ZooKeeper first.
Check JAVA Version
> java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
Find the latest version from here
https://www.apache.org/dyn/closer.cgi/zookeeper/
I download the latest version
> wget http://mirrors.ocf.berkeley.edu/apache/zookeeper/zookeeper-3.5.5/apache-zookeeper-3.5.5-bin.tar.gz
Unzip and place in the working directory
> sudo ln -s /home/carl/tool/zookeeper-3.5.5 /opt/zookeeper-3.5.5
> sudo ln -s /opt/zookeeper-3.5.5 /opt/zookeeper
Add this to the path
export PATH="/opt/zookeeper/bin:$PATH"
Prepare the configuration file
> cp conf/zoo_sample.cfg conf/zoo.cfg
If our port 8080 is taken, we need to change AdminServer port from
> vi bin/zkServer.sh
nohup "$JAVA" $ZOO_DATADIR_AUTOCREATE "-Dzookeeper.log.dir=${ZOO_LOG_DIR}" "-Dzookeeper.admin.serverPort=8081"\
"-Dzookeeper.log.file=${ZOO_LOG_FILE}" "-Dzookeeper.root.logger=${ZOO_LOG4J_PROP}" \
-XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError='kill -9 %p' \
-cp "$CLASSPATH" $JVMFLAGS $ZOOMAIN "$ZOOCFG" > "$_ZOO_DAEMON_OUT" 2>&1 < /dev/null &
Command to start the service
> zkServer.sh start conf/zoo.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo.cfg
Starting zookeeper ... STARTED
Check the Status from Admin Console
http://ubuntu-master:8081/commands/stats
Connect from the client
> zkCli.sh -server localhost:2181
Stop the Server
> zkServer.sh stop
ZooKeeper JMX enabled by default
Using config: /opt/zookeeper/bin/../conf/zoo.cfg
Stopping zookeeper ... STOPPED
Set Up Cluster Configuration
In the configuration
server.1=ubuntu-master:2888:3888
server.2=ubuntu-dev2:2888:3888
server.3=ubuntu-dev4:2888:3888
> cat /tmp/zookeeper/myid
1
Add this to PATH
ZOO_MY_ID=1
export ZOO_MY_ID
Do the similar things to server2 and server3
PATH="/opt/zookeeper/bin:$PATH"
ZOO_MY_ID=2
export ZOO_MY_ID
> mkdir -p /tmp/zookeeper/
> cat /tmp/zookeeper/myid
2
PATH="/opt/zookeeper/bin:$PATH"
ZOO_MY_ID=3
export ZOO_MY_ID
> mkdir -p /tmp/zookeeper/
> cat /tmp/zookeeper/myid
3
Start all 3 servers
> zkServer.sh start conf/zoo1.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo1.cfg
Starting zookeeper ... STARTED
> zkServer.sh start conf/zoo2.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo2.cfg
Starting zookeeper ... STARTED
> zkServer.sh start conf/zoo3.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo3.cfg
Starting zookeeper ... STARTED
Check status on them
> zkServer.sh status conf/zoo1.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo1.cfg
Client port found: 2181. Client address: localhost.
Mode: follower
> zkServer.sh status conf/zoo2.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo2.cfg
Client port found: 2181. Client address: localhost.
Mode: leader
> zkServer.sh status conf/zoo3.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo3.cfg
Client port found: 2181. Client address: localhost.
Mode: follower
References:
https://medium.com/thinkspecial/power-of-reactor-kafka-5df7cdef2bdd
https://github.com/reactor/reactor-kafka
https://www.e4developer.com/2018/04/11/getting-reactive-with-spring-boot-2-0-and-reactor/
https://www.reactiveprogramming.be/an-introduction-to-reactor-kafka/
https://objectpartners.com/2018/08/07/apache-kafka-and-reactive-spring-boot/
https://github.com/reactor/reactor-kafka
https://projectreactor.io/docs/kafka/release/reference/#_non_blocking_back_pressure
Zookeeper Cluster
https://www.jianshu.com/p/ea138dba2d36
Set up 2*N+1 Cluster for ZooKeeper first.
Check JAVA Version
> java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
Find the latest version from here
https://www.apache.org/dyn/closer.cgi/zookeeper/
I download the latest version
> wget http://mirrors.ocf.berkeley.edu/apache/zookeeper/zookeeper-3.5.5/apache-zookeeper-3.5.5-bin.tar.gz
Unzip and place in the working directory
> sudo ln -s /home/carl/tool/zookeeper-3.5.5 /opt/zookeeper-3.5.5
> sudo ln -s /opt/zookeeper-3.5.5 /opt/zookeeper
Add this to the path
export PATH="/opt/zookeeper/bin:$PATH"
Prepare the configuration file
> cp conf/zoo_sample.cfg conf/zoo.cfg
If our port 8080 is taken, we need to change AdminServer port from
> vi bin/zkServer.sh
nohup "$JAVA" $ZOO_DATADIR_AUTOCREATE "-Dzookeeper.log.dir=${ZOO_LOG_DIR}" "-Dzookeeper.admin.serverPort=8081"\
"-Dzookeeper.log.file=${ZOO_LOG_FILE}" "-Dzookeeper.root.logger=${ZOO_LOG4J_PROP}" \
-XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError='kill -9 %p' \
-cp "$CLASSPATH" $JVMFLAGS $ZOOMAIN "$ZOOCFG" > "$_ZOO_DAEMON_OUT" 2>&1 < /dev/null &
Command to start the service
> zkServer.sh start conf/zoo.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo.cfg
Starting zookeeper ... STARTED
Check the Status from Admin Console
http://ubuntu-master:8081/commands/stats
Connect from the client
> zkCli.sh -server localhost:2181
Stop the Server
> zkServer.sh stop
ZooKeeper JMX enabled by default
Using config: /opt/zookeeper/bin/../conf/zoo.cfg
Stopping zookeeper ... STOPPED
Set Up Cluster Configuration
In the configuration
server.1=ubuntu-master:2888:3888
server.2=ubuntu-dev2:2888:3888
server.3=ubuntu-dev4:2888:3888
> cat /tmp/zookeeper/myid
1
Add this to PATH
ZOO_MY_ID=1
export ZOO_MY_ID
Do the similar things to server2 and server3
PATH="/opt/zookeeper/bin:$PATH"
ZOO_MY_ID=2
export ZOO_MY_ID
> mkdir -p /tmp/zookeeper/
> cat /tmp/zookeeper/myid
2
PATH="/opt/zookeeper/bin:$PATH"
ZOO_MY_ID=3
export ZOO_MY_ID
> mkdir -p /tmp/zookeeper/
> cat /tmp/zookeeper/myid
3
Start all 3 servers
> zkServer.sh start conf/zoo1.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo1.cfg
Starting zookeeper ... STARTED
> zkServer.sh start conf/zoo2.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo2.cfg
Starting zookeeper ... STARTED
> zkServer.sh start conf/zoo3.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo3.cfg
Starting zookeeper ... STARTED
Check status on them
> zkServer.sh status conf/zoo1.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo1.cfg
Client port found: 2181. Client address: localhost.
Mode: follower
> zkServer.sh status conf/zoo2.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo2.cfg
Client port found: 2181. Client address: localhost.
Mode: leader
> zkServer.sh status conf/zoo3.cfg
ZooKeeper JMX enabled by default
Using config: conf/zoo3.cfg
Client port found: 2181. Client address: localhost.
Mode: follower
References:
https://medium.com/thinkspecial/power-of-reactor-kafka-5df7cdef2bdd
https://github.com/reactor/reactor-kafka
https://www.e4developer.com/2018/04/11/getting-reactive-with-spring-boot-2-0-and-reactor/
https://www.reactiveprogramming.be/an-introduction-to-reactor-kafka/
https://objectpartners.com/2018/08/07/apache-kafka-and-reactive-spring-boot/
https://github.com/reactor/reactor-kafka
https://projectreactor.io/docs/kafka/release/reference/#_non_blocking_back_pressure
Zookeeper Cluster
https://www.jianshu.com/p/ea138dba2d36
发表评论
-
Update Site will come soon
2021-06-02 04:10 1672I am still keep notes my tech n ... -
Stop Update Here
2020-04-28 09:00 310I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 467NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 361Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 363Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 328Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 421Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 428Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 364Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 444VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 376Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 465NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 413Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 330Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 242GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 443GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 320GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 306Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 310Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 285Serverless with NodeJS and Tenc ...
相关推荐
1. 生产者(Producer):生产者是发布消息到Kafka 主题的客户端。它可以是任何生成数据的应用程序,例如服务器日志、传感器数据等。生产者负责将消息发送到Kafka 的broker,并可以指定消息的分区策略。 2. 消费者...
2. Kafka:Kafka使用Zookeeper进行集群管理和消息的元数据存储。 3. HBase:Zookeeper负责RegionServer的协调和Master选举。 4. Spark:Spark使用Zookeeper来管理应用的持久化状态和集群的动态配置。 总结,...
ZooKeeper是一个开放源码的分布式应用程序协调服务,它包含一个简单的原语集,分布式应用程序可以基于它实现同步服务,配置维护和命名服务等。 Kafka目前主要作为一个分布式的发布订阅式的消息系统使用 本资源包括...
在Windows环境下搭建Kafka之前,首先需要安装Zookeeper,因为Zookeeper是Kafka的重要组成部分,它作为分布式协调服务,为Kafka提供了集群管理和数据一致性保障。Zookeeper-3.4.6是Apache ZooKeeper的一个稳定版本,...
消息队列:Kafka:Kafka与Zookeeper集成教程.docx
在构建大数据处理环境时,Hadoop集群是核心基础,而`zookeeper3.4.12+hbase1.4.4+sqoop1.4.7+kafka2.10`这一组合则提供了集群中不可或缺的组件。让我们逐一探讨这些组件的功能、作用以及它们之间的协同工作。 **...
【标题】"kafka_jdk_zookeeper集合.zip"是一个压缩包,包含了三个核心组件:Java Development Kit (JDK) 版本8u211、Apache ZooKeeper 3.6.2 和 Kafka 0.9.0.0,这些都是大数据处理和流计算领域的重要工具。...
kafka, 负载均衡,恢复 Kafka 消费,支持 Zookeeper KafkaKafka,工具和示例应用程序构建在 sarama插件包之上。库收费:基于 web sphere 支持负载平衡和偏移持久性的分布式 Kafka 使用者,支持负载平衡和偏移持久性...
这个Docker Compose 文件定义了一个包含Zookeeper和三个Kafka节点的服务集群。通过指定镜像、端口映射、环境变量和依赖关系等配置,实现了Zookeeper和Kafka的快速部署和集成。同时,在定义了一个名为"mynetwork"的...
1. 将`apache-zookeeper-3.5.5.tar.gz`解压缩到你选择的目录,比如 `/usr/local/`。 2. 进入解压后的目录,如 `/usr/local/apache-zookeeper-3.5.5-bin`。 3. 编辑 `conf/zoo.cfg` 配置文件,这是Zookeeper的主要...
《Kafka 0.10.2.1与Zookeeper 3.4.9:分布式消息系统的基石》 在分布式系统领域,Kafka和Zookeeper是两个不可或缺的组件。Kafka是一个高性能、可扩展的开源流处理平台,而Zookeeper则是一个分布式的协调服务,它们...
本文介绍了一款集成图形化界面配置和一键自启功能的Kafka与Zookeeper服务管理软件。该软件通过直观易用的图形界面,使用户能够轻松完成Kafka和Zookeeper的配置工作,有效避免了手动编辑配置文件可能带来的错误和不便...
1. **上传文件**: 将Zookeeper和Kafka的安装包上传至`/opt/software`目录下。 2. **解压Kafka**: ```bash tar zxf /opt/software/kafka_2.12-2.0.0.tgz ``` #### 三、文件移动与目录创建 1. **移动Kafka**: 将...
Apache ZooKeeper 致力于开发和维护一个开源服务器,以实现高度可靠的分布式协调。 ZooKeeper 是一个集中式服务,用于维护配置信息、命名、提供分布式同步和提供组服务。 所有这些类型的服务都以某种形式被分布式...
zookeeper安装包 kafka安装包 jdk安装包
KAFKA_ZOOKEEPER_CONNECT:zookeeper的连接地址 KAFKA_LISTENERS:标识kafka服务运行在容器内的9092端口,因为没有指定host,所以是 0.0.0.0标识所有的网络接口。 KAFKA_ADVERTISED_LISTENERS:kafka发布到zookeeper...
kafka zookeeper 执行文件 kafka zookeeper 执行文件 kafka zookeeper 执行文件 kafka zookeeper 执行文件 kafka zookeeper 执行文件 kafka zookeeper 执行文件 kafka zookeeper 执行文件
标题中的"storm,kafka,zookeeper jar包"提到了三个关键组件,它们都是大数据处理领域中的重要工具。让我们逐一深入了解这些技术。 1. **Apache Storm**:Storm 是一个开源的分布式实时计算系统,用于处理无界数据...