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

网站建设的公司合肥台州超值营销型网站建设地址

网站建设的公司合肥,台州超值营销型网站建设地址,遵义市汇川区建设厅网站,网站广告收入如何缴文化事业建设费之前提到Flume可以直接采集数据存储到HDFS中#xff0c;那为什么还要引入Kafka这个中间件呢#xff0c;这个是因为在实际应用场景中#xff0c;我们既需要实时计算也需要离线计算。 Kfka to HDFS配置 # Name the components on this agent a1.sources r1 a1.sinks k1 a1.…之前提到Flume可以直接采集数据存储到HDFS中那为什么还要引入Kafka这个中间件呢这个是因为在实际应用场景中我们既需要实时计算也需要离线计算。 Kfka to HDFS配置 # Name the components on this agent a1.sources r1 a1.sinks k1 a1.channels c1# source a1.sources.r1.type org.apache.flume.source.kafka.KafkaSource a1.sources.r1.channels channel1 a1.sources.r1.batchSize 10 a1.sources.r1.batchDurationMillis 2000 a1.sources.r1.kafka.bootstrap.servers hadoop01:9092,hadoop02:9092,hadoop03:9092 a1.sources.r1.kafka.topics test_r2p5 a1.sources.r1.kafka.consumer.group.id flume-group1# Bind the source and sink to the channel a1.channels.c1.type memory a1.channels.c1.capacity 1000 a1.channels.c1.transactionCapacity 1000# Describe the sink a1.sinks.k1.type hdfs a1.sinks.k1.channel c1 a1.sinks.k1.hdfs.path hdfs://192.168.52.100:9000/kafkaout/%Y-%m-%d a1.sinks.k1.hdfs.filePrefix access a1.sinks.k1.hdfs.writeFormat Text a1.sinks.k1.hdfs.useLocalTimeStamp true a1.sinks.k1.hdfs.fileType DataStream a1.sinks.k1.hdfs.rollCount 0 a1.sinks.k1.hdfs.rollInterval 3600 a1.sinks.k1.hdfs.rollSize 134217728# Bind the source and sink to the channel a1.sources.r1.channels c1 a1.sinks.k1.channel c1File to Kafka配置 # Name the components on this agent a1.sources r1 a1.sinks k1 a1.channels c1# source a1.sources.r1.type exec a1.sources.r1.command tail -F /home/log/test.log# Bind the source and sink to the channel a1.channels.c1.type memory a1.channels.c1.capacity 1000 a1.channels.c1.transactionCapacity 1000# Describe the sink a1.sinks.k1.type org.apache.flume.sink.kafka.KafkaSink a1.sinks.k1.kafka.topic test_r2p5 a1.sinks.k1.kafka.bootstrap.servers hadoop01:9092,hadoop02:9092,hadoop03:9092 a1.sinks.k1.kafka.flumeBatchSize 10 a1.sinks.k1.kafka.producer.acks 1 a1.sinks.k1.kafka.producer.linger.ms 1 a1.sinks.k1.kafka.producer.compression.type snappy# Bind the source and sink to the channel a1.sources.r1.channels c1 a1.sinks.k1.channel c1创建Topic [roothadoop01 kafka_2.12-2.4.0]# bin/kafka-topics.sh --create --zookeeper hadoop01:2181 --partitions 5 --replication-factor 2 --topic test_r2p5 启动flume [roothadoop04 conf-kafka-hdfs]# bin/flume-ng agent --name a1 --conf conf-kafka-hdfs --conf-file conf-kafka-hdfs/kafka-to-hdfs.conf -Dflume.root.loggerINFO,console [roothadoop04 apache-flume-1.11.0-bin]# bin/flume-ng agent --name a1 --conf conf-file-kafka --conf-file conf-file-kafka/file-to-kafka.conf -Dflume.root.loggerINFO,console 创建test.log文件 [roothadoop04 log]# echo hello world /home/log/test.log 验证 [roothadoop01 kafka_2.12-2.4.0]# hdfs dfs -cat /kafkaout/2024-03-13/access.1710307375351.tmp hello world p01 kafka_2.12-2.4.0]# hdfs dfs -cat /kafkaout/2024-03-13/access.1710307375351.tmp hello world
http://www.zqtcl.cn/news/760640/

相关文章:

  • 自贡建设机械网站网站策划与运营课程认知
  • 公司做网站该注意哪些廊坊seo
  • 网站开发目录高尔夫 wordpress
  • 三只松鼠网站建设不做网站做百家号
  • 石家庄网站关键词推广淘宝网站建设设计模板
  • 马鞍山什么房产网站做的好网速
  • 国外做兼职网站软件园二期做网站的公司
  • 淘客网站备案教程网页设计与制作教程十四五规划
  • 哪些网站可以做外部锚文本网页设计个人简历怎么做
  • 福州网站营销北京著名网站建设公司
  • 导购网站开发 源码wordpress 获取总页数
  • 网站名查找wordpress评论人
  • 网络推广最好的网站有哪些wordpress怎么用万网域名
  • 大连仟亿科技网站建设公司 概况网络信用贷款哪个好
  • 配置了iis打不开网站外贸建站哪个最便宜
  • 酒店网站建设描述免费建站网站有哪些
  • 做宠物的网站主题思想网站建设 司法公开的需要
  • 建站图标素材前端面试题2022
  • 宁夏住房建设厅网站官网最新版cmsv6
  • 网站建设备案和免备案的区别建网站视频教程
  • 网站推广话术wordpress主题没法用
  • 微信网站开发 全屏包头教育云平台网站建设
  • 诸城手机网站建设做竞价网站
  • 网站策划报告公司简介模板范文高大上
  • 做信息图的免费网站如何获取网站是哪个公司制作
  • 乐清建设网站哪家好seo一个月赚多少钱
  • 哈尔滨专业官网建站企业h5公众号开发
  • 商城网站建设精英wordpress实例配置
  • 国内网站开发语言模板兔自用主题WordPress
  • 天津营销网站建设公司哪家好市场营销平台