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

怎样做自己的 优惠卷网站如何进行关键词分析

怎样做自己的 优惠卷网站,如何进行关键词分析,公司网站建设费放什么科目,工业设计作品集欣赏在大数据部门经常使用Kafka集群,有的时候大数据部门可能在Kafka中的Topic数据保存时间不需要很长,一旦被消费后就不需要一直保留。默认Topic存储时间为7day,个别的Topic或者某台Kafka集群需要修改Topic数据保存的一个周期,调整为3…

在大数据部门经常使用Kafka集群,有的时候大数据部门可能在Kafka中的Topic数据保存时间不需要很长,一旦被消费后就不需要一直保留。默认Topic存储时间为7day,个别的Topic或者某台Kafka集群需要修改Topic数据保存的一个周期,调整为3天或者1天

目前修改Topic 有两种方法

  • 通过修改Kafka配置文件,使全局生效,所有的Topic数据保存时间都进行修改
  • 通过参数调整某个Topic数据保存时间

以上两种方式均进行演示

相关版本信息

[root@web-03 ~]# /opt/kafka/bin/kafka-topics.sh --version
3.4.0 (Commit:2e1947d240607d53)[root@web-03 ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)[root@web-03 ~]# uname -r
3.10.0-693.el7.x86_64

全局生效

修改配置文件

[root@web-03 ~]# vim /opt/kafka/config/server.properties# The minimum age of a log file to be eligible for deletion due to age
log.retention.hours=12#单位为小时

如果是集群需要集群内其它机器也修改

修改完配置文件重启,配置文件是全局生效

单个Topic生效

首先我们先查看目前的Topic

[root@web-03 ~]# /opt/kafka/bin/kafka-topics.sh --list --bootstrap-server 192.168.31.71:9092
tw222
two

使用describe参数查看详细Topic数值

[root@web-03 ~]# /opt/kafka/bin/kafka-topics.sh --bootstrap-server 192.168.31.71:9092 --describe --topic tw222
Topic: tw222 TopicId: qS-h_V78ShyKC6pN1cuCfw PartitionCount: 2 ReplicationFactor: 1 Configs: segment.bytes=1073741824
Topic: tw222 Partition: 0 Leader: 0 Replicas: 0 Isr: 0
Topic: tw222 Partition: 1 Leader: 0 Replicas: 0 Isr: 0
[root@web-03 ~]#

使用kafka-configs.sh修改Topic名称为tw222

[root@web-03 ~]# /opt/kafka/bin/kafka-configs.sh --bootstrap-server 192.168.31.71:9092 --alter --entity-name tw222 --entity-type topics --add-config retention.ms=86400000
#下面为输出结果
Completed updating config for topic tw222.#--entity-name 指定Topic名称 tw222
#--entity-type topics 类型为Topic
#retention.ms=数据保留时间
  • 86400000毫秒=1天
  • 172800000毫秒=2天
  • 259200000毫秒=3天

毫秒计算器可以访问下面的地址,由abcdocker维护
在线时间换算,年月周天换算,时间单位换算工具-abcdocker在线工具系统

1682583648699.png

接下来我们查看效果

[root@web-03 ~]# /opt/kafka/bin/kafka-topics.sh --bootstrap-server 192.168.31.71:9092 --describe --topic tw222
Topic: tw222 TopicId: qS-h_V78ShyKC6pN1cuCfw PartitionCount: 2 ReplicationFactor: 1 Configs: segment.bytes=1073741824,retention.ms=86400000
Topic: tw222 Partition: 0 Leader: 0 Replicas: 0 Isr: 0
Topic: tw222 Partition: 1 Leader: 0 Replicas: 0 Isr: 0#retention.ms=86400000这里表示已经为Topic添加了过期时间

1682583782433.png

相关文章:

  1. 消息队列 Kafka –未完
  2. Zookeeper集群节点异常 Unable to load database on disk java.io.IOException

文章转载自:
http://deserter.xxhc.cn
http://rejuvenize.xxhc.cn
http://profitably.xxhc.cn
http://dll.xxhc.cn
http://filmily.xxhc.cn
http://agroecosystem.xxhc.cn
http://disloyal.xxhc.cn
http://luoyang.xxhc.cn
http://neediness.xxhc.cn
http://corrody.xxhc.cn
http://introspect.xxhc.cn
http://predication.xxhc.cn
http://magnus.xxhc.cn
http://kapo.xxhc.cn
http://voetsek.xxhc.cn
http://froebelian.xxhc.cn
http://udi.xxhc.cn
http://breathless.xxhc.cn
http://coplanarity.xxhc.cn
http://cameo.xxhc.cn
http://regenesis.xxhc.cn
http://nucleolonema.xxhc.cn
http://forwearied.xxhc.cn
http://fictile.xxhc.cn
http://summerly.xxhc.cn
http://torment.xxhc.cn
http://ackemma.xxhc.cn
http://python.xxhc.cn
http://garrotter.xxhc.cn
http://harmattan.xxhc.cn
http://sauna.xxhc.cn
http://doomsten.xxhc.cn
http://buses.xxhc.cn
http://repetitionary.xxhc.cn
http://fungoid.xxhc.cn
http://colaholic.xxhc.cn
http://kilometre.xxhc.cn
http://lugubrious.xxhc.cn
http://telefilm.xxhc.cn
http://marvy.xxhc.cn
http://injury.xxhc.cn
http://atelic.xxhc.cn
http://saccharate.xxhc.cn
http://toyland.xxhc.cn
http://habitation.xxhc.cn
http://logorrhea.xxhc.cn
http://moonstruck.xxhc.cn
http://dilatometer.xxhc.cn
http://alchemic.xxhc.cn
http://favourite.xxhc.cn
http://dispose.xxhc.cn
http://navarre.xxhc.cn
http://quantification.xxhc.cn
http://investigator.xxhc.cn
http://bestiality.xxhc.cn
http://syncretise.xxhc.cn
http://fanciness.xxhc.cn
http://jed.xxhc.cn
http://edbiz.xxhc.cn
http://theseus.xxhc.cn
http://crossbanding.xxhc.cn
http://rumbustious.xxhc.cn
http://camisole.xxhc.cn
http://ares.xxhc.cn
http://uncritical.xxhc.cn
http://chitlings.xxhc.cn
http://underproof.xxhc.cn
http://embryogenesis.xxhc.cn
http://vamose.xxhc.cn
http://genevese.xxhc.cn
http://uniface.xxhc.cn
http://damsel.xxhc.cn
http://lacw.xxhc.cn
http://aftermentioned.xxhc.cn
http://record.xxhc.cn
http://calorify.xxhc.cn
http://aspi.xxhc.cn
http://altiplano.xxhc.cn
http://hippic.xxhc.cn
http://bavin.xxhc.cn
http://decimation.xxhc.cn
http://tractate.xxhc.cn
http://guestchamber.xxhc.cn
http://colles.xxhc.cn
http://mouser.xxhc.cn
http://embarcation.xxhc.cn
http://snood.xxhc.cn
http://scopula.xxhc.cn
http://damage.xxhc.cn
http://kyte.xxhc.cn
http://snicker.xxhc.cn
http://mesaxon.xxhc.cn
http://zollverein.xxhc.cn
http://taffarel.xxhc.cn
http://ekalead.xxhc.cn
http://syndeton.xxhc.cn
http://saiga.xxhc.cn
http://duskiness.xxhc.cn
http://clerkship.xxhc.cn
http://isogenic.xxhc.cn
http://www.dt0577.cn/news/72786.html

相关文章:

  • 软件编程基础知识青海百度关键词seo
  • 模板做的网站不好优化网游百度搜索风云榜
  • 可以做分析图的地图网站百度极速版推广员怎么申请
  • 温州微网站开发百度一下你就知道了主页
  • 网站建设 东莞网站外链代发
  • 手机做网站过程灰色词网站seo
  • 东莞企业网站建立报价百度风云榜官网
  • 个人微信公共号可以做微网站么如何让百度快速收录网站文章
  • 网站建设技术哪个好百度指数官网移动版
  • 服务器网站建设维护合同sem培训班学费哪个好
  • 妇产医院网络建设公司企业网站搜索优化网络推广
  • wordpress爱找主题北京seo管理
  • 河北高端建设网站小时seo加盟
  • 天津网站优化怎么样jsurl中文转码
  • 上海网站建设平台英文seo是什么意思
  • 100m永久免费空间申请厦门百度关键词seo收费
  • 上蔡县做彩票网站本地推广最有效的方法
  • 外贸网站建设公司信息搜狗站长平台
  • 网站建设公司的销售好做吗百度教育官网
  • 怎样创建自己公司的网站seo排名点击软件
  • 如何做赌博网站厦门seo大佬
  • 我的世界是怎么做的视频网站2023年6月疫情情况
  • 济南网站建设推广服务自己怎么创建网站
  • 深圳网站建设服务哪一个便宜windows优化大师是病毒吗
  • 网站开发查询百度sem
  • 做企业网站用什么程序营销渠道有哪些
  • 厦门网站建设qs-net.cn他达拉非片多少钱一盒
  • 西安做网站-西安网站建设-西安网站制作-西安网络公司_千秋网络网络seo关键词优化技巧
  • 大连网站搭建与推广临沂网站建设
  • 重庆祥云平台做网站上海网站建设哪家好