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

html教程的内容东莞市seo网络推广品牌

html教程的内容,东莞市seo网络推广品牌,网络服务费分录,湖南湘潭Kafka安装配置 首先我们把kafka的安装包上传到虚拟机中#xff1a; 解压到对应的目录并修改对应的文件名#xff1a; 首先我们来到kafka的config目录#xff0c;我们第一个要修改的文件就是server.properties文件#xff0c;修改内容如下#xff1a; # Licensed to the … Kafka安装配置 首先我们把kafka的安装包上传到虚拟机中 解压到对应的目录并修改对应的文件名 首先我们来到kafka的config目录我们第一个要修改的文件就是server.properties文件修改内容如下 # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the License); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License.# see kafka.server.KafkaConfig for additional details and defaults############################# Server Basics ############################## The id of the broker. This must be set to a unique integer for each broker. # kafka在整个集群中的身份标识集群中的id是唯一的 broker.id0############################# Socket Server Settings ############################## The address the socket server listens on. It will get the value returned from # java.net.InetAddress.getCanonicalHostName() if not configured. # FORMAT: # listeners listener_name://host_name:port # EXAMPLE: # listeners PLAINTEXT://your.host.name:9092 #listenersPLAINTEXT://:9092# Hostname and port the broker will advertise to producers and consumers. If not set, # it uses the value for listeners if configured. Otherwise, it will use the value # returned from java.net.InetAddress.getCanonicalHostName(). #advertised.listenersPLAINTEXT://your.host.name:9092# Maps listener names to security protocols, the default is for them to be the same. See the config documentation for more details #listener.security.protocol.mapPLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL# The number of threads that the server uses for receiving requests from the network and sending responses to the network num.network.threads3# The number of threads that the server uses for processing requests, which may include disk I/O num.io.threads8# The send buffer (SO_SNDBUF) used by the socket server socket.send.buffer.bytes102400# The receive buffer (SO_RCVBUF) used by the socket server socket.receive.buffer.bytes102400# The maximum size of a request that the socket server will accept (protection against OOM) socket.request.max.bytes104857600############################# Log Basics ############################## A comma separated list of directories under which to store log files # 存储kafka数据的位置默认存储在临时文件夹要修改成自己的文件夹 log.dirs/opt/model/kafka/datas# The default number of log partitions per topic. More partitions allow greater # parallelism for consumption, but this will also result in more files across # the brokers. num.partitions1# The number of threads per data directory to be used for log recovery at startup and flushing at shutdown. # This value is recommended to be increased for installations with data dirs located in RAID array. num.recovery.threads.per.data.dir1############################# Internal Topic Settings ############################# # The replication factor for the group metadata internal topics __consumer_offsets and __transaction_state # For anything other than development testing, a value greater than 1 is recommended to ensure availability such as 3. offsets.topic.replication.factor1 transaction.state.log.replication.factor1 transaction.state.log.min.isr1############################# Log Flush Policy ############################## Messages are immediately written to the filesystem but by default we only fsync() to sync # the OS cache lazily. The following configurations control the flush of data to disk. # There are a few important trade-offs here: # 1. Durability: Unflushed data may be lost if you are not using replication. # 2. Latency: Very large flush intervals may lead to latency spikes when the flush does occur as there will be a lot of data to flush. # 3. Throughput: The flush is generally the most expensive operation, and a small flush interval may lead to excessive seeks. # The settings below allow one to configure the flush policy to flush data after a period of time or # every N messages (or both). This can be done globally and overridden on a per-topic basis.# The number of messages to accept before forcing a flush of data to disk #log.flush.interval.messages10000# The maximum amount of time a message can sit in a log before we force a flush #log.flush.interval.ms1000############################# Log Retention Policy ############################## The following configurations control the disposal of log segments. The policy can # be set to delete segments after a period of time, or after a given size has accumulated. # A segment will be deleted whenever *either* of these criteria are met. Deletion always happens # from the end of the log.# The minimum age of a log file to be eligible for deletion due to age log.retention.hours168# A size-based retention policy for logs. Segments are pruned from the log unless the remaining # segments drop below log.retention.bytes. Functions independently of log.retention.hours. #log.retention.bytes1073741824# The maximum size of a log segment file. When this size is reached a new log segment will be created. log.segment.bytes1073741824# The interval at which log segments are checked to see if they can be deleted according # to the retention policies log.retention.check.interval.ms300000############################# Zookeeper ############################## Zookeeper connection string (see zookeeper docs for details). # This is a comma separated host:port pairs, each corresponding to a zk # server. e.g. 127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002. # You can also append an optional chroot string to the urls to specify the # root directory for all kafka znodes. # 连接的zookeeper集群需要将集群中部署zookeeper的所有节点写入 # 首先在zookeeper中数据的存储是以目录树的方式去存储的如果后期我们的kafka的数据要修改在不做任何的修改的情况下默认是存储在zookeeper根目录下的这样我们想要单独提取出zookeeper的数据就非常的麻烦 # 所以我们将kafka的数据的单独存储在一个文件分支中这就是我们为什么要在最后写一个[/kafka]的原因。 # 前面写多个节点是为了防止单个zookeeper节点无法连接可以使用其他的zookeeper节点 zookeeper.connectnode1:2181,node2:2181,node3:2181/kafka# Timeout in ms for connecting to zookeeper zookeeper.connection.timeout.ms6000############################# Group Coordinator Settings ############################## The following configuration specifies the time, in milliseconds, that the GroupCoordinator will delay the initial consumer rebalance. # The rebalance will be further delayed by the value of group.initial.rebalance.delay.ms as new members join the group, up to a maximum of max.poll.interval.ms. # The default value for this is 3 seconds. # We override this to 0 here as it makes for a better out-of-the-box experience for development and testing. # However, in production environments the default value of 3 seconds is more suitable as this will help to avoid unnecessary, and potentially expensive, rebalances during application startup. group.initial.rebalance.delay.ms0主要修改三个部分一个是唯一标识idkafka的文件存储路径一个是zookeeper的节点地址。 然后我们将kafka的安装包分发到其他的节点中。 注意在分发完成之后不要忘记修改不同节点中的唯一标识id的值。 然后我们就可以启动kafka的服务了注意在启动kafka的服务之前我们必须要启动zookeeper的服务。 kafka和zookeeper一样也是要在每个节点中都分别执行启动脚本并且kafka的启动脚本需要手动指定配置文件 ./kafka-server-start.sh -daemon ../config/server.properties 注意我的kafka的地址和你们的可能不一样但是只需要知道启动命令在bin目录下配置文件在conf目录下即可我们在三台虚拟机上分别执行脚本 当我们看到在集群中出现kafka的进程之后就表示我们的kafka集群启动成功了。
http://www.dnsts.com.cn/news/209845.html

相关文章:

  • 网站没服务器行吗wordpress返利主题
  • 广州网站建设公司奇亿网站建设外包加工网会员
  • 团购网站app制作山西网站建设推荐咨询
  • 自建网站服务器政务信息网站建设工作
  • 破天网站定制设计网页
  • 美食网站建设的功能成都建设银行官方网站
  • 学校网站asp响应式布局方式
  • 咨询网站模板东莞公司注册可以用住宅吗
  • 昆明优秀网站百度推广需要多少钱
  • 微网站如何做网业版浏览器
  • 选择做印象绍兴网站的原因5 个不同类型的网站
  • 联系昆明网站建设大同网站建设制作哪家好
  • 商城网站程序网站模版免费
  • 网站做百度推广多少钱有网站源码 怎么做网站
  • 学做ppt网站简答网站内容建设的时候内链重要性
  • 网站开发怎么学重庆网站制作一般多少钱
  • wordpress如何站点怎样在门户网站做网络推广
  • 怀化政法网站网站建设要哪些人
  • 图盛网站建设开网站建设公司好
  • 中国建设银行网站用户找人做网站毕业设计
  • 做网站的资源哪里找百度地图添加到网站
  • 设备上哪个网站做外贸推广个人网站名称怎么起
  • 天津电力建设公司招标网站免费软文发布平台
  • 深圳哪里有做网站的陶瓷网站建设中企动力
  • DW如何做明星的个人网站保定关键词优化软件
  • wordpress修改数据库表深圳优化网站排名软件
  • 新加坡域名注册网站建设网站公司兴田德润在哪儿
  • 织梦网站内部优化响应网站 整屏
  • 网站除了做流量还需要什么浙江建设信息港成绩查询栏
  • 在线制作二维码网站适合企业员工培训的课程