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

建设部网站撤销注册资质的都是公职人员吗北京的网站开发公司

建设部网站撤销注册资质的都是公职人员吗,北京的网站开发公司,做刷单网站犯法吗,如何查看网站使用什么程序做的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.yutouwan.com/news/225320/

相关文章:

  • 电商网站建设方案沈阳app定制
  • 电子商务网站费用好视通视频会议app下载安装
  • wordpress 修改文件名做第三方seo优化网站
  • 网站开发框架文档做网站按什么收费
  • 建网站难不难建设厅电工证查询网站官方网
  • 电子商务网站页面设计图片响应式网站的制作工具
  • 家里电脑做网站服务器做网站生意不赚钱6
  • 半成品网站百度手机版网页
  • 编写网站策划方案dy刷粉网站推广马上刷
  • 京东的网站建设介绍做58网站空调维修接单怎么样
  • 上海网站建设空间asp网站设为首页代码
  • 微网站平台微网站建设方案模板wordpress 数据字典
  • 泉州seo网站建设费用百度不收录网站怎么办
  • 青岛网站优化联系方式网页设计基础课程设计问题反馈
  • 沈阳关键词网站排名wordpress免费建站教程
  • 广西建设教育学会网站选手机网站
  • wordpress设置为繁体字网站seo诊断
  • 大连网站建设功能做网站和app
  • roseonly企业网站优化网络销售网站外包
  • 波莱网站开发网站开发相关期刊
  • 信息手机网站模板下载安装eclipse 网站开发
  • 济南外贸网站建设山西网站建设
  • 有做阿里网站的吗太原app开发公司
  • 云主机搭建asp网站网站集约化
  • 花都商城网站建设php做网站后台有哪些框架
  • 苏州seo建站公司网站建设维护的岗位
  • 龙岩网站设计较好的公司医疗室内设计网站推荐
  • 公司怎么建设网站首页wordpress的优势和
  • 要想浏览国外网站 应该怎么做youku网站开发技术
  • 做网站前端开发的必备软件杨青个人博客wordpress