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

网页设计图片刷新随机更换手机端seo

网页设计图片刷新随机更换,手机端seo,专业建设外贸网站制作,住建城乡建设部网站证件查询前言 本节内容我们主要介绍一下Flume数据采集过程中,如何把多个数据采集点的数据聚合到一个地方供分析使用。我们使用hadoop101服务器采集nc数据,hadoop102采集文件数据,将hadoop101和hadoop102服务器采集的数据聚合到hadoop103服务器输出到…

前言

本节内容我们主要介绍一下Flume数据采集过程中,如何把多个数据采集点的数据聚合到一个地方供分析使用。我们使用hadoop101服务器采集nc数据,hadoop102采集文件数据,将hadoop101和hadoop102服务器采集的数据聚合到hadoop103服务器输出到控制台。其整体架构如下:

正文

①在hadoop101服务器的/opt/module/apache-flume-1.9.0/job/group1目录下创建job-nc-flume-avro.conf配置文件,用于监控nc发送的数据,通过avro sink传输到avro source

- job-nc-flume-avro.conf配置文件

# Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1
# Describe/configure the source
a1.sources.r1.type = exec
a1.sources.r1.command = tail -F /opt/module/apache-flume-1.9.0/a.log
a1.sources.r1.shell = /bin/bash -c
# Describe the sink
a1.sinks.k1.type = avro
a1.sinks.k1.hostname = hadoop103
a1.sinks.k1.port = 4141
# Describe the channel
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100
# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1

②在hadoop102服务器的/opt/module/apache-flume-1.9.0/job/group1目录下创建job-file-flume-avro.conf配置文件,用于监控目录/opt/module/apache-flume-1.9.0/a.log的数据,通过avro sink传输到avro source 

- job-file-flume-avro.conf配置文件

# Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1
# Describe/configure the source
a1.sources.r1.type = exec
a1.sources.r1.command = tail -F /opt/module/apache-flume-1.9.0/a.log
a1.sources.r1.shell = /bin/bash -c
# Describe the sink
a1.sinks.k1.type = avro
a1.sinks.k1.hostname = hadoop103
a1.sinks.k1.port = 4141
# Describe the channel
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100
# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1

③在hadoop103服务器的/opt/module/apache-flume-1.9.0/job/group1目录下创建job-avro-flume-console.conf配置文件,用户将avro source聚合的数据输出到控制台

- job-avro-flume-console.conf配置文件

# Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1
# Describe/configure the source
a1.sources.r1.type = avro
a1.sources.r1.bind = hadoop103
a1.sources.r1.port = 4141
# Describe the sink
# Describe the sink
a1.sinks.k1.type = logger
# Describe the channel
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100
# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1

④ 在hadoop103启动job-avro-flume-console.conf任务

- 命令:

bin/flume-ng agent -c conf/ -n a1 -f job/group1/job-avro-flume-console.conf -Dflume.root.logger=INFO,console

⑤在hadoop101启动job-nc-flume-avro.conf任务

- 命令:

bin/flume-ng agent -c conf/ -n a1 -f job/group1/job-nc-flume-avro.conf -Dflume.root.logger=INFO,console

⑥在hadoop102启动job-file-flume-avro.conf任务

- 命令:

bin/flume-ng agent -c conf/ -n a1 -f job/group1/job-file-flume-avro.conf -Dflume.root.logger=INFO,console

⑦使用nc工具向hadoop101发送数据

- nc发送数据

- hadoop103接收到数据

⑧在hadoop102的a.log中写入数据

- 写入数据

-  hadoop103接收到数据

结语

flume数据聚合就是为了将具有相同属性的数据聚合到一起,便于管理、分析、统计等。至此,关于Flume数据采集之采集数据聚合案例实战到这里就结束了,我们下期见。。。。。。

http://www.mnyf.cn/news/47801.html

相关文章:

  • 有自己团队做网站上线多久网站为什么要seo?
  • 百度广告联盟网站免费网络营销平台
  • 如果做动态网站开发 以下35个成功的市场营销策划案例
  • 建筑专业名词网站台州seo
  • 杭州自适应网站建设全国唯一一个没有疫情的城市
  • 湖南人文科技学院seo排名赚挂机赚钱软件下载
  • 互动吧网站模板百度知道首页登录入口
  • 保定专业网站建设关键词优化推广排名
  • 昆山网站建设哪家好免费营销软件网站
  • 河池公司做网站英语seo
  • 做响应式网站兼容哪几个尺寸全球十大网站排名
  • 西藏做网站济南谷歌推广
  • 网站快速排名推广引流工具
  • 怎么在自己做的网站上发视频教程制作链接的app的软件
  • 平安好车主app下载官方网站下载如何做电商赚钱
  • wordpress网站推广主题百度网站推广费用
  • ai里做的图片方网站上不清楚网络营销推广方法
  • 做网站需要多少钱 百度提供搜索引擎优化公司
  • 上海外贸推广建站搜狗首页排名优化
  • 怎样做士产品销售网站百度爱采购平台登录
  • wordpress能用多个云存储么windows优化大师免费
  • 新疆生产建设兵团12师网站百度网站的域名地址
  • 网站开发工资济南交换链接平台
  • b2c网站及网址自动seo系统
  • 世界各大网站搜索引擎提交入口北京百度推广客服电话多少
  • 邯郸做网站推广费用百度推广效果怎么样
  • 新网站建设渠道web网址
  • 长春市大学生网站建设76人vs猛龙
  • 免费咨询男科医院优化大师电脑版官方
  • 网站程序超市怎么建设自己的网站