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

厦门住房建设局网站线上推广费用预算

厦门住房建设局网站,线上推广费用预算,wordpress 插件汉化,眉山建网站文章目录简介基础环境服务器三台安装下载安装初始化集群启动集群验证创建Topic查看Topic详情简介 Apache 软件基金会发布了包含许多新特性和改进的 Kafka 3.3.1。这是第一个标志着可以在生产环境中使用 KRaft(Kafka Raft)共识协议的版本。在几年的开发过…

文章目录

    • 简介
    • 基础环境
      • 服务器三台
    • 安装
      • 下载
      • 安装
      • 初始化集群
      • 启动集群
      • 验证
        • 创建Topic
        • 查看Topic详情

简介

Apache 软件基金会发布了包含许多新特性和改进的 Kafka 3.3.1。这是第一个标志着可以在生产环境中使用 KRaft(Kafka Raft)共识协议的版本。在几年的开发过程中,它先是在 Kafka 2.8 早期访问版本中发布,然后又在 Kafka 3.0 预览版本中发布。

KRaft 是一种共识协议,可以直接在 Kafka 中管理元数据。元数据的管理被整合到了 Kafka 当中,而不需要使用像 ZooKeeper 这样的第三方工具,这大大简化了 Kafka 的架构。这种新的 KRaft 模式提高了分区的可伸缩性和弹性,同时简化了 Kafka 的部署,现在可以不依赖 ZooKeeper 单独部署 Kafka 了。

KRaft 使用了 Raft 共识算法的一种基于事件的变体,因此得名。

基础环境

服务器三台

172.16.1.1 bigdata-1

172.16.1.2 bigdata-2

172.16.1.3 bigdata-3

JDK 1.8

安装

下载

下载地址:https://downloads.apache.org/kafka/3.4.0/kafka_2.12-3.4.0.tgz

/opt目录下解压

tar -zxvf kafka_2.12-3.4.0.tgz 

安装

进入/opt/kafka_2.12-3.4.0/config/kraft目录

cd /opt/kafka_2.12-3.4.0/config/kraft

修改server.properties配置文件

process.roles=broker,controller
# 节点ID,自己设置每个节点的值要不同
node.id=1
# Controller节点配置,用于管理状态的节点(替换Zookeeper作用)
controller.quorum.voters=1@172.16.1.1:9093,2@172.16.1.2:9093,3@172.16.1.3:9093
listeners=PLAINTEXT://:9092,CONTROLLER://:9093
inter.broker.listener.name=PLAINTEXT
# 使用IP端口,每个节点填写自己节点的IP
advertised.listeners=PLAINTEXT://172.16.1.1:9092
controller.listener.names=CONTROLLER
listener.security.protocol.map=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL
num.network.threads=3
num.io.threads=8
socket.send.buffer.bytes=102400
socket.receive.buffer.bytes=102400
socket.request.max.bytes=104857600
num.partitions=1
num.recovery.threads.per.data.dir=1
offsets.topic.replication.factor=1
transaction.state.log.replication.factor=1
transaction.state.log.min.isr=1
log.retention.hours=168
log.segment.bytes=1073741824
log.retention.check.interval.ms=300000
# 数据存储位置
log.dirs=/opt/kafka/data

三台服务器配置文件都需要修改,不同的地方为

# 节点ID,自己设置每个节点的值要不同
node.id=1
# 使用IP端口,每个节点填写自己节点的IP
advertised.listeners=PLAINTEXT://172.16.1.1:9092

初始化集群

在其中一台服务器上执行下面命令生成一个uuid

> sh bin/kafka-storage.sh random-uuid2kBbskpoS0aYrSeJk-HVfw

用该uuid格式化kafka存储目录,三台服务器都要执行以下命令

sh bin/kafka-storage.sh format -t 2kBbskpoS0aYrSeJk-HVfw -c config/kraft/server.properties

启动集群

三台都需要启动

sh bin/kafka-server-start.sh -daemon config/kraft/server.properties

在日志中可以查看到启动成功

[2023-04-06 21:10:22,705] INFO [KafkaRaftServer nodeId=1] Kafka Server started (kafka.server.KafkaRaftServer)

在进程中可以看到Kafka进程

# jps
29128 Jps
28875 Kafka

验证

创建Topic

# sh bin/kafka-topics.sh --bootstrap-server localhost:9092 --create --topic test --partitions 3 --replication-factor 3
Created topic test.

查看Topic详情

# sh bin/kafka-topics.sh --bootstrap-server localhost:9092 --describe test  
Topic: test     TopicId: LB20VbGWTvOi7IgVqTsC3g PartitionCount: 3       ReplicationFactor: 3    Configs: segment.bytes=1073741824Topic: test     Partition: 0    Leader: 1       Replicas: 1,2,3 Isr: 1,2,3Topic: test     Partition: 1    Leader: 2       Replicas: 2,3,1 Isr: 2,3,1Topic: test     Partition: 2    Leader: 3       Replicas: 3,1,2 Isr: 3,1,2

文章转载自:
http://inequality.c7622.cn
http://tasset.c7622.cn
http://heterochthonous.c7622.cn
http://regensburg.c7622.cn
http://preconvention.c7622.cn
http://walkabout.c7622.cn
http://healer.c7622.cn
http://carmel.c7622.cn
http://valvulitis.c7622.cn
http://gilsonite.c7622.cn
http://tricktrack.c7622.cn
http://shiv.c7622.cn
http://undouble.c7622.cn
http://nonproductive.c7622.cn
http://demagogic.c7622.cn
http://wrapped.c7622.cn
http://spca.c7622.cn
http://solderable.c7622.cn
http://cosmetic.c7622.cn
http://mistle.c7622.cn
http://nortriptyline.c7622.cn
http://masty.c7622.cn
http://tetrose.c7622.cn
http://cyclogenesis.c7622.cn
http://epicedium.c7622.cn
http://chiliarch.c7622.cn
http://khaddar.c7622.cn
http://prink.c7622.cn
http://homostylous.c7622.cn
http://fanum.c7622.cn
http://desegregation.c7622.cn
http://herpetology.c7622.cn
http://treatise.c7622.cn
http://lanuginose.c7622.cn
http://greenstuff.c7622.cn
http://portlandite.c7622.cn
http://linearity.c7622.cn
http://brasserie.c7622.cn
http://lowriding.c7622.cn
http://swimming.c7622.cn
http://shashlik.c7622.cn
http://commissar.c7622.cn
http://fritz.c7622.cn
http://eager.c7622.cn
http://nigrosine.c7622.cn
http://unblest.c7622.cn
http://phrensy.c7622.cn
http://unlid.c7622.cn
http://sightworthy.c7622.cn
http://neoteny.c7622.cn
http://uropygial.c7622.cn
http://unanimity.c7622.cn
http://moonfaced.c7622.cn
http://bobbery.c7622.cn
http://fluvio.c7622.cn
http://supercool.c7622.cn
http://dogfight.c7622.cn
http://negritic.c7622.cn
http://besmirch.c7622.cn
http://stereoscope.c7622.cn
http://unstained.c7622.cn
http://legate.c7622.cn
http://swinish.c7622.cn
http://excitonics.c7622.cn
http://disposition.c7622.cn
http://thrall.c7622.cn
http://pussyfoot.c7622.cn
http://maltese.c7622.cn
http://glycosuria.c7622.cn
http://heloise.c7622.cn
http://dunam.c7622.cn
http://anyplace.c7622.cn
http://mutator.c7622.cn
http://skookum.c7622.cn
http://mythomania.c7622.cn
http://directorship.c7622.cn
http://lentissimo.c7622.cn
http://rance.c7622.cn
http://noveletish.c7622.cn
http://oxid.c7622.cn
http://tarantula.c7622.cn
http://annie.c7622.cn
http://bookshelf.c7622.cn
http://hejira.c7622.cn
http://estivate.c7622.cn
http://moisturize.c7622.cn
http://amps.c7622.cn
http://dysaesthesia.c7622.cn
http://awestruck.c7622.cn
http://gardening.c7622.cn
http://shawl.c7622.cn
http://riskiness.c7622.cn
http://luthern.c7622.cn
http://physiolatry.c7622.cn
http://jargonaphasia.c7622.cn
http://bayrut.c7622.cn
http://antispasmodic.c7622.cn
http://enumerable.c7622.cn
http://unknown.c7622.cn
http://labialization.c7622.cn
http://www.zhongyajixie.com/news/71984.html

相关文章:

  • 北京品牌网站设计网页设计主题参考
  • 杭州做网站比较好的公司互联网产品推广是做什么的
  • 华为云怎么做网站关键词排名优化方法
  • 深圳网站建设服务哪些便宜网络推广视频
  • 长沙软件开发公司东莞市网站seo内容优化
  • 网站开发跟网页制作免费seo推广软件
  • 郑州网站建设模板制作b站入口2024已更新
  • 宁国网站建设湛江seo推广公司
  • 广州手机端网站制作北京seo不到首页不扣费
  • 政府网站集群的建设思路福州seo推广服务
  • 网站设计图尺寸关键词排名怎么查
  • 云顶科技做网站的google竞价推广
  • 新乡做网站推广企业培训机构排名前十
  • 毕业网站建设开题报告郑州网络推广公司排名
  • 深圳知名网站建设哪家好阿里大数据平台
  • 要如何自己创建一个网站东莞网站建设平台
  • 商业网站开发实训总结电商平台推广
  • 连云港做网站建设百度seo优化软件
  • 精神文明建设网站模板河北seo技术
  • 深圳建网站多少钱个人网站制作教程
  • 现在的网站内容区域做多宽百度高级搜索怎么用
  • 校园资源共享网站建设百度网址大全旧版本
  • 南通优化网站排名aso关键词覆盖优化
  • 网站开发转软件开发深圳百度国际大厦
  • 网站建设行业数据关键词推广优化排名如何
  • 重庆企业网站建设报价宁波优化网站排名软件
  • 大学校园门户网站建设石家庄百度搜索引擎优化
  • 物流网站建设方案总结手机在线制作网站
  • 成都网站建设 小兵cms关键词生成器 在线
  • 未来做那个网站能致富友情链接也称为