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

用vs2013做网站app联盟推广平台

用vs2013做网站,app联盟推广平台,网站建设策划包括哪些内容,怎么弄自己的网址文章目录 1、集群主题创建1.1、查看 efak1.2、创建 主题 my_topic1 并建立6个分区并给每个分区建立3个副本1.2.1、查看 my_topic1 的详细信息 1.3、停止 kafka-01实例,端口号为 9095 1、集群主题创建 1.1、查看 efak 已经有三个kafka实例 1.2、创建 主题 my_topic1…

文章目录

  • 1、集群主题创建
      • 1.1、查看 efak
      • 1.2、创建 主题 my_topic1 并建立6个分区并给每个分区建立3个副本
        • 1.2.1、查看 my_topic1 的详细信息
      • 1.3、停止 kafka-01实例,端口号为 9095

1、集群主题创建

1.1、查看 efak

已经有三个kafka实例

在这里插入图片描述

1.2、创建 主题 my_topic1 并建立6个分区并给每个分区建立3个副本

[root@localhost ~]# kafka-topics.sh --bootstrap-server 192.168.74.148:9095,192.168.74.148:9096,192.168.74.148:9097 --create --topic my_topic1 --partitions 6 --replication-factor 3
WARNING: Due to limitations in metric names, topics with a period ('.') or underscore ('_') could collide. To avoid issues it is best to use either, but not both.
Created topic my_topic1.

在这里插入图片描述

1.2.1、查看 my_topic1 的详细信息
[root@localhost ~]# kafka-topics.sh --bootstrap-server 192.168.74.148:9095,192.168.74.148:9096,192.168.74.148:9097 --describe --topic my_topic1
Topic: my_topic1        TopicId: kfK_6WklTwC9Xop1sePFQA PartitionCount: 6       ReplicationFactor: 3    Configs: max.message.bytes=1000000Topic: my_topic1        Partition: 0    Leader: 96      Replicas: 96,97,95      Isr: 96,97,95Topic: my_topic1        Partition: 1    Leader: 95      Replicas: 95,96,97      Isr: 95,96,97Topic: my_topic1        Partition: 2    Leader: 97      Replicas: 97,95,96      Isr: 97,95,96Topic: my_topic1        Partition: 3    Leader: 96      Replicas: 96,95,97      Isr: 96,95,97Topic: my_topic1        Partition: 4    Leader: 95      Replicas: 95,97,96      Isr: 95,97,96Topic: my_topic1        Partition: 5    Leader: 97      Replicas: 97,96,95      Isr: 97,96,95

在这里插入图片描述

1.3、停止 kafka-01实例,端口号为 9095

如果其中一个kafka实例挂掉了,它会自动使用另外两个其中的一个实例上位

[root@localhost ~]# docker stop kafka-01
kafka-01
[root@localhost ~]#  kafka-topics.sh --bootstrap-server 192.168.74.148:9095,192.168.74.148:9096,192.168.74.148:9097 --describe --topic my_topic1
[2024-06-03 20:13:44,388] WARN [AdminClient clientId=adminclient-1] Connection to node -1 (/192.168.74.148:9095) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
Topic: my_topic1        TopicId: kfK_6WklTwC9Xop1sePFQA PartitionCount: 6       ReplicationFactor: 3    Configs: max.message.bytes=1000000Topic: my_topic1        Partition: 0    Leader: 96      Replicas: 96,97,95      Isr: 96,97Topic: my_topic1        Partition: 1    Leader: 96      Replicas: 95,96,97      Isr: 96,97Topic: my_topic1        Partition: 2    Leader: 97      Replicas: 97,95,96      Isr: 97,96Topic: my_topic1        Partition: 3    Leader: 96      Replicas: 96,95,97      Isr: 96,97Topic: my_topic1        Partition: 4    Leader: 97      Replicas: 95,97,96      Isr: 97,96Topic: my_topic1        Partition: 5    Leader: 97      Replicas: 97,96,95      Isr: 97,96

96实例上位,也就是9096端口的kafka-02实例上位

在这里插入图片描述

如果此时再重新启动kafka-01实例,此时它没有上位,而是排在后面,成为小弟

[root@localhost ~]# docker start kafka-01 
kafka-01
[root@localhost ~]#  kafka-topics.sh --bootstrap-server 192.168.74.148:9095,192.168.74.148:9096,192.168.74.148:9097 --describe --topic my_topic1
Topic: my_topic1        TopicId: kfK_6WklTwC9Xop1sePFQA PartitionCount: 6       ReplicationFactor: 3    Configs: max.message.bytes=1000000Topic: my_topic1        Partition: 0    Leader: 96      Replicas: 96,97,95      Isr: 96,97,95Topic: my_topic1        Partition: 1    Leader: 96      Replicas: 95,96,97      Isr: 96,97,95Topic: my_topic1        Partition: 2    Leader: 97      Replicas: 97,95,96      Isr: 97,96,95Topic: my_topic1        Partition: 3    Leader: 96      Replicas: 96,95,97      Isr: 96,97,95Topic: my_topic1        Partition: 4    Leader: 97      Replicas: 95,97,96      Isr: 97,96,95Topic: my_topic1        Partition: 5    Leader: 97      Replicas: 97,96,95      Isr: 97,96,95

在这里插入图片描述

http://www.bjxfkj.com.cn/article/102013.html

相关文章:

  • 网站模板版权网站快速优化排名软件
  • 网页打不开怎么办页面无法显示seo能干一辈子吗
  • frontpage制作个人网站 技巧站长网站大全
  • 梅州免费建站公司百度应用
  • 美国有网站建设公司吗优化关键词软件
  • 郑州做网站公司电话手机百度官网
  • 游戏 网站 模板职业技能培训
  • 政府网站建设申论电视剧百度风云榜
  • 网站建设预期达到的效果在线看seo网站
  • 品牌线上推广渠道有哪些系统优化软件
  • 人人装修网win优化大师官网
  • 做相册什么网站好品牌互动营销案例
  • wordpress mu 搜索网站优化 福州
  • 怎么添加网站免费顶级域名注册网站
  • 网站建设情况说明书云搜索app
  • 南宁做棋牌网站的公司网络营销的定义是什么
  • 西城网站制作公司提高工作效率
  • 怎么用文本做网站阐述网络推广的主要方法
  • 图片自制微信表情常州seo
  • 模板做的网站如何下载地址互动营销用在哪些推广上面
  • wordpress 流量监控seo是什么职业
  • 潍坊淘宝网站建设展示型网页设计公司
  • wordpress 仪表盘 渗透前端性能优化
  • 网站开发与维护专业前景滨州网站seo
  • 怎么设计网站页面免费推广途径
  • 免费mac做ppt模板下载网站劳动局免费培训电工
  • dw个人网站模板下载app推广营销
  • 酒店如何做网站一个新手怎么去运营淘宝店铺
  • 昌平做网站公司抖音关键词查询工具
  • 潮流印花图案设计网站真正永久免费的建站系统有哪些