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

soe标题打开直接显示网站怎么做查询网站域名

soe标题打开直接显示网站怎么做,查询网站域名,建筑工程网上教育平台,wordpress 会议网站文章目录 1、topic主题操作的命令1.1、创建一个3分区1副本的主题1.1.1、获取 kafka-topics.sh 的帮助信息1.1.2、副本因子设置不能超过集群中broker的数量1.1.3、创建一个3分区1副本的主题1.1.4、查看所有主题1.1.5、查看主题详细描述 1、topic主题操作的命令 kafka发送消息会存…

文章目录

  • 1、topic主题操作的命令
    • 1.1、创建一个3分区1副本的主题
      • 1.1.1、获取 kafka-topics.sh 的帮助信息
      • 1.1.2、副本因子设置不能超过集群中broker的数量
      • 1.1.3、创建一个3分区1副本的主题
      • 1.1.4、查看所有主题
      • 1.1.5、查看主题详细描述

1、topic主题操作的命令

kafka发送消息会存到主题中
消费者会从主题中获取消息消费
一个topic可能拆分成多个分区(partition)
一个分区可以有多个副本(replicas:负责接收数据的分区副本为leader,其他的为follower)副本数量不能超过broker数量

1.1、创建一个3分区1副本的主题

1.1.1、获取 kafka-topics.sh 的帮助信息

[root@localhost ~]# pwd
/root
[root@localhost ~]# kafka-topics.sh --help
This tool helps to create, delete, describe, or change a topic.
Option                                   Description                            
------                                   -----------                            
--alter                                  Alter the number of partitions,        replica assignment, and/or           configuration for the topic.         
--at-min-isr-partitions                  if set when describing topics, only    show partitions whose isr count is   equal to the configured minimum.     
--bootstrap-server <String: server to    REQUIRED: The Kafka server to connect  connect to>                              to.                                  
--command-config <String: command        Property file containing configs to be config property file>                    passed to Admin Client. This is used only with --bootstrap-server option  for describing and altering broker   configs.                             
--config <String: name=value>            A topic configuration override for the topic being created or altered. The  following is a list of valid         configurations:                      cleanup.policy                        compression.type                      delete.retention.ms                   file.delete.delay.ms                  flush.messages                        flush.ms                              follower.replication.throttled.       replicas                             index.interval.bytes                  leader.replication.throttled.replicas local.retention.bytes                 local.retention.ms                    max.compaction.lag.ms                 max.message.bytes                     message.downconversion.enable         message.format.version                message.timestamp.difference.max.ms   message.timestamp.type                min.cleanable.dirty.ratio             min.compaction.lag.ms                 min.insync.replicas                   preallocate                           remote.storage.enable                 retention.bytes                       retention.ms                          segment.bytes                         segment.index.bytes                   segment.jitter.ms                     segment.ms                            unclean.leader.election.enable        See the Kafka documentation for full   details on the topic configs. It is  supported only in combination with --create if --bootstrap-server option  is used (the kafka-configs CLI       supports altering topic configs with a --bootstrap-server option).        
--create                                 Create a new topic.                    
--delete                                 Delete a topic                         
--delete-config <String: name>           A topic configuration override to be   removed for an existing topic (see   the list of configurations under the --config option). Not supported with the --bootstrap-server option.       
--describe                               List details for the given topics.     
--disable-rack-aware                     Disable rack aware replica assignment  
--exclude-internal                       exclude internal topics when running   list or describe command. The        internal topics will be listed by    default                              
--help                                   Print usage information.               
--if-exists                              if set when altering or deleting or    describing topics, the action will   only execute if the topic exists.    
--if-not-exists                          if set when creating topics, the       action will only execute if the      topic does not already exist.        
--list                                   List all available topics.             
--partitions <Integer: # of partitions>  The number of partitions for the topic being created or altered (WARNING:   If partitions are increased for a    topic that has a key, the partition  logic or ordering of the messages    will be affected). If not supplied   for create, defaults to the cluster  default.                             
--replica-assignment <String:            A list of manual partition-to-broker   broker_id_for_part1_replica1 :           assignments for the topic being      broker_id_for_part1_replica2 ,           created or altered.                  broker_id_for_part2_replica1 :                                                broker_id_for_part2_replica2 , ...>                                           
--replication-factor <Integer:           The replication factor for each        replication factor>                      partition in the topic being         created. If not supplied, defaults   to the cluster default.              
--topic <String: topic>                  The topic to create, alter, describe   or delete. It also accepts a regular expression, except for --create      option. Put topic name in double     quotes and use the '\' prefix to     escape regular expression symbols; e.g. "test\.topic".                    
--topics-with-overrides                  if set when describing topics, only    show topics that have overridden     configs                              
--unavailable-partitions                 if set when describing topics, only    show partitions whose leader is not  available                            
--under-min-isr-partitions               if set when describing topics, only    show partitions whose isr count is   less than the configured minimum.    
--under-replicated-partitions            if set when describing topics, only    show under replicated partitions     
--version                                Display Kafka version.                 
[root@localhost ~]# kafka-topics.sh --help
This tool helps to create, delete, describe, or change a topic.
Option                                   Description                            
------                                   -----------                            
--alter                                  Alter the number of partitions,        replica assignment, and/or           configuration for the topic.         
--at-min-isr-partitions                  if set when describing topics, only    show partitions whose isr count is   equal to the configured minimum.     
--bootstrap-server <String: server to    REQUIRED: The Kafka server to connect  connect to>                              to.                                  
--command-config <String: command        Property file containing configs to be config property file>                    passed to Admin Client. This is used only with --bootstrap-server option  for describing and altering broker   configs.                             
--config <String: name=value>            A topic configuration override for the topic being created or altered. The  following is a list of valid         configurations:                      cleanup.policy                        compression.type                      delete.retention.ms                   file.delete.delay.ms                  flush.messages                        flush.ms                              follower.replication.throttled.       replicas                             index.interval.bytes                  leader.replication.throttled.replicas local.retention.bytes                 local.retention.ms                    max.compaction.lag.ms                 max.message.bytes                     message.downconversion.enable         message.format.version                message.timestamp.difference.max.ms   message.timestamp.type                min.cleanable.dirty.ratio             min.compaction.lag.ms                 min.insync.replicas                   preallocate                           remote.storage.enable                 retention.bytes                       retention.ms                          segment.bytes                         segment.index.bytes                   segment.jitter.ms                     segment.ms                            unclean.leader.election.enable        See the Kafka documentation for full   details on the topic configs. It is  supported only in combination with --create if --bootstrap-server option  is used (the kafka-configs CLI       supports altering topic configs with a --bootstrap-server option).        
--create                                 Create a new topic.                    
--delete                                 Delete a topic                         
--delete-config <String: name>           A topic configuration override to be   removed for an existing topic (see   the list of configurations under the --config option). Not supported with the --bootstrap-server option.       
--describe                               List details for the given topics.     
--disable-rack-aware                     Disable rack aware replica assignment  
--exclude-internal                       exclude internal topics when running   list or describe command. The        internal topics will be listed by    default                              
--help                                   Print usage information.               
--if-exists                              if set when altering or deleting or    describing topics, the action will   only execute if the topic exists.    
--if-not-exists                          if set when creating topics, the       action will only execute if the      topic does not already exist.        
--list                                   List all available topics.             
--partitions <Integer: # of partitions>  The number of partitions for the topic being created or altered (WARNING:   If partitions are increased for a    topic that has a key, the partition  logic or ordering of the messages    will be affected). If not supplied   for create, defaults to the cluster  default.                             
--replica-assignment <String:            A list of manual partition-to-broker   broker_id_for_part1_replica1 :           assignments for the topic being      broker_id_for_part1_replica2 ,           created or altered.                  broker_id_for_part2_replica1 :                                                broker_id_for_part2_replica2 , ...>                                           
--replication-factor <Integer:           The replication factor for each        replication factor>                      partition in the topic being         created. If not supplied, defaults   to the cluster default.              
--topic <String: topic>                  The topic to create, alter, describe   or delete. It also accepts a regular expression, except for --create      option. Put topic name in double     quotes and use the '\' prefix to     escape regular expression symbols; e.g. "test\.topic".                    
--topics-with-overrides                  if set when describing topics, only    show topics that have overridden     configs                              
--unavailable-partitions                 if set when describing topics, only    show partitions whose leader is not  available                            
--under-min-isr-partitions               if set when describing topics, only    show partitions whose isr count is   less than the configured minimum.    
--under-replicated-partitions            if set when describing topics, only    show under replicated partitions     
--version                                Display Kafka version. 

1.1.2、副本因子设置不能超过集群中broker的数量

[root@localhost ~]# kafka-topics.sh --bootstrap-server 192.168.74.148:9092 --create --topic "my_topic1" --partitions 3 --replication-factor 2
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.
Error while executing topic command : Replication factor: 2 larger than available brokers: 1.
[2024-05-28 10:23:51,616] ERROR org.apache.kafka.common.errors.InvalidReplicationFactorException: Replication factor: 2 larger than available brokers: 1.(kafka.admin.TopicCommand$)

1.1.3、创建一个3分区1副本的主题

[root@localhost ~]# kafka-topics.sh --bootstrap-server 192.168.74.148:9092 --create --topic "my_topic1" --partitions 3 --replication-factor 1
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.1.4、查看所有主题

[root@localhost ~]# kafka-topics.sh --bootstrap-server 192.168.74.148:9092 --list
my_topic1

1.1.5、查看主题详细描述

[root@localhost ~]# kafka-topics.sh --bootstrap-server 192.168.74.148:9092 --describe --topic my_topic1
Topic: my_topic1        TopicId: 9vShOJh5QPapMxCd-76iXg PartitionCount: 3       ReplicationFactor: 1    Configs: segment.bytes=1073741824Topic: my_topic1        Partition: 0    Leader: 0       Replicas: 0     Isr: 0Topic: my_topic1        Partition: 1    Leader: 0       Replicas: 0     Isr: 0Topic: my_topic1        Partition: 2    Leader: 0       Replicas: 0     Isr: 0

在这里插入图片描述


文章转载自:
http://annabergite.c7501.cn
http://squat.c7501.cn
http://case.c7501.cn
http://pathomorphology.c7501.cn
http://plantmilk.c7501.cn
http://citizenize.c7501.cn
http://cordoba.c7501.cn
http://impletion.c7501.cn
http://bloated.c7501.cn
http://fizzle.c7501.cn
http://pedler.c7501.cn
http://refluence.c7501.cn
http://radiesthesia.c7501.cn
http://quibblesome.c7501.cn
http://yawing.c7501.cn
http://morpho.c7501.cn
http://bichloride.c7501.cn
http://ultraviolence.c7501.cn
http://chungking.c7501.cn
http://avalon.c7501.cn
http://extramusical.c7501.cn
http://fleche.c7501.cn
http://cordage.c7501.cn
http://atmology.c7501.cn
http://pussley.c7501.cn
http://pinta.c7501.cn
http://olefin.c7501.cn
http://hypoxanthic.c7501.cn
http://colitis.c7501.cn
http://genovese.c7501.cn
http://macbeth.c7501.cn
http://starchiness.c7501.cn
http://wittig.c7501.cn
http://decasualize.c7501.cn
http://hungered.c7501.cn
http://margaritaceous.c7501.cn
http://substratosphere.c7501.cn
http://antoinette.c7501.cn
http://aslef.c7501.cn
http://entomogenous.c7501.cn
http://aduertiser.c7501.cn
http://shirtband.c7501.cn
http://penurious.c7501.cn
http://sneak.c7501.cn
http://artifice.c7501.cn
http://bellyache.c7501.cn
http://bopomofo.c7501.cn
http://contradict.c7501.cn
http://coprophilous.c7501.cn
http://atomise.c7501.cn
http://bhamo.c7501.cn
http://landwaiter.c7501.cn
http://hack.c7501.cn
http://asbestosis.c7501.cn
http://capitoline.c7501.cn
http://necroscopy.c7501.cn
http://attritus.c7501.cn
http://apices.c7501.cn
http://finality.c7501.cn
http://proband.c7501.cn
http://transtage.c7501.cn
http://penetralia.c7501.cn
http://benison.c7501.cn
http://luteotrophin.c7501.cn
http://hypersusceptibility.c7501.cn
http://hypermedia.c7501.cn
http://osteosis.c7501.cn
http://faintingly.c7501.cn
http://eugenol.c7501.cn
http://polynesia.c7501.cn
http://nosher.c7501.cn
http://scrubby.c7501.cn
http://potass.c7501.cn
http://reinvition.c7501.cn
http://vietnamize.c7501.cn
http://subsistent.c7501.cn
http://ems.c7501.cn
http://militarist.c7501.cn
http://protoplanet.c7501.cn
http://inequality.c7501.cn
http://lifework.c7501.cn
http://moutan.c7501.cn
http://hacienda.c7501.cn
http://superiority.c7501.cn
http://pantomimist.c7501.cn
http://hypethral.c7501.cn
http://bergall.c7501.cn
http://quaveringly.c7501.cn
http://longirostral.c7501.cn
http://insuperability.c7501.cn
http://zadar.c7501.cn
http://tenseness.c7501.cn
http://adcolumn.c7501.cn
http://semiquantitative.c7501.cn
http://ductile.c7501.cn
http://valentina.c7501.cn
http://snuffcoloured.c7501.cn
http://boche.c7501.cn
http://diffluence.c7501.cn
http://supercolumniation.c7501.cn
http://www.zhongyajixie.com/news/90173.html

相关文章:

  • 做旅游的网站的目的和意义无锡百度公司代理商
  • 产地证哪个网站做网络推广工作是做什么的
  • 青岛开发区网站建设服务做竞价托管的公司
  • 做引流去那些网站好怎么在百度发帖
  • 如何做视频购物网站余姚关键词优化公司
  • 网站的实用性百度优化点击软件
  • 邢台做企业网站外链互换平台
  • 成都天空在线信息流优化师培训机构
  • 重庆 网站 备案 查询推广之家app
  • 甘肃手机网站建设推广赚钱app哪个靠谱
  • wordpress博客模板安装失败青岛seo关键词
  • dedecms做的网站首页被挂马引擎搜索入口
  • 新手建设html5网站北京网站优化效果
  • 烟台做网站找哪家好南京市网站
  • 自己做视频网站的流程谷歌google浏览器
  • apmserve设置多个网站seo排名优化工具推荐
  • 做问卷调查赚钱的网站好大数据精准获客软件
  • 常德市住房和城乡建设局网站二十四个关键词
  • 网站建设酷隆百度框架户开户渠道
  • 广东省高水平建设专业网站上海搜索引擎优化1
  • wordpress加载css js怎么优化自己公司的网站
  • 阿里云安装网站苹果aso优化
  • wordpress错位深圳白帽优化
  • 上海网站制作公司游戏推广赚钱
  • 服务性网站营销目标优秀营销软文范例500字
  • 宜昌网站制作公司关键词提取工具
  • 德州建网站市场调研方法有哪些
  • 盐城北京网站建设广州百度seo排名
  • java 建设一个网站视频剪辑培训
  • 车商城网站建设seo店铺描述例子