版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、(作者:大海哥3.1Flume 2)Flume (作者:大海哥3.1Flume 2)Flume 常3.2 Flume (1)单个(2)多级agent (1)(1)单个(2)多级agent (1)Sink可以根据SinkGroup和sor由Sink。(3)) 三3.1 Flume 的安装 下2)解压apache-flume-1.7.0-) 三3.1 Flume 的安装 下2)解压apache-flume-1.7.0-下 3)修改apache-flume-1.7.0-bin名称为 doop102flume#viexport export doop102flume#source Flumenc 源到
2、控1)需求:从Linuxnc: doop102module#yuminstalldoop102module#nc-,并修改名称为 (2/opt/module/flume/conf/perties.template, 并修改名称为 doop102module#nc-,并修改名称为 (2/opt/module/flume/conf/perties.template, 并修改名称为 export (c)描述配置ink到在下创建配置文件flume-= r a.sinks = k a.sour .r.type = netcat a.sour .r.
3、bind= a.sour .r.port = 8888a.sinks.k.type=# Use a channel which buffers eventsa.channels.c.type = memory a.channels.c.capacity = 1000#Bindthesourceandsinktothechannel .r.channels = c a.sinks.k.channel = c#-conf - #-conf - 3.2 小试先在flume的# 定义这个agent= r1 a1.sinks = k1 #描述和配置source组件:r1 .r1.type
4、= netcat(2)启动agent-c指定flume-f-n 指这个agent的名 (2)启动agent-c指定flume-f-n 指这个agent的名 ( netlocalhost到HDFS (2)下沉目标,即sinkHDFS文件系统 bin/flume-ngagent-cconf-fogger.conf-n-.r1.port = 44444sink组件:k1 a1.sinks.k1.type = logger# a1.channels.c1.type = memory a1.channels.c1.capacity = 1000 ionCapacity=100# 描述和配置 .r1.ch
5、annels=c1 a1.sinks.k1.channel = c1(1)先在flume(1)先在flume的event = r1 a1.sinks = k1 a1.channels = c1# source.r1.type = spooldir .r1.fileHeader = true# sinka1.sinks.k1.type= a1.sinks.k1.hdfs.filePrefix = aca1.sinks.k1.hdfs.maxOpenFiles=a1.sinks.k1.hdfs.batchSize= 100 a1.sinks.k1.hdfs.writeFormat =Text a1
6、.sinks.k1.hdfs.rollSize = 102400a1.sinks.k1.hdfs.rollCount = 1000000 erval = 60 # 配置 channels 组件 a1.channels.c1.type = memory a1.channels.c1.capacity = 1000 # .r1.channels=c1 a1.sinks.k1.channel = c1 : : tail-F (2)下沉目标,即sinkHDFS文件系统 (3)Source 和 sink 之间的传递通道channelfile channel = r1 a1.sinks = k1 a1.c
7、hannels = c1# source.r1.type=mand=tail-Fbin/flume-ngagent-c./conf-f./conf/spool-logger.conf-na1- atguiguhadoop102 atguiguhadoop102logs$tail-Fatguiguhadoop102datas$whileechoatguigusleepbin/flume-ngagent-cconf-fconf/tail-hdfs.conf-n.r1.channels=# 配置 sink 组件 a1.sinks.k1.type = hdfs a1.sinks.k1.hdfs.fil
8、ePrefix = events-a1.sinks.k1.hdfs.round = true a1.sinks.k1.hdfs.roundValue = 10 erval = 3 a1.sinks.k1.hdfs.rollSize = 20 a1.sinks.k1.hdfs.batchSize = 1 # 配置 channels 组件 a1.channels.c1.type = memory a1.channels.c1.capacity = 1000 ionCapacity=100# .r1.channels=c1 a1.sinks.k1.channel = c13.5 agent3.5 a
9、gent a)在flume#Namethecomponentsonthisagent = r1a1.sinks = k1 .r1.type = execmand=tail-F/opt/logs/test.log .r1.channels = c1# Describe the sink a1.sinks = k1a1.sinks.k1.type =avro a1.sinks.k1.channel=c1 a)在flume #Namethecomponentsonthisagent = r1a1.sinks = k1 .r1.type = avro .r1.channels = c1 .r1.bin
10、d = .r1.port = 4141# Describe the sink # Use a channel which buffers eventsa1.channels.c1.type = memory a1.channels.c1.capacity = 1000 ionCapacity = 100#Bindthe sourceandsinktotheatguiguhadoop102datas$whileechoatguigusleep a1.sinks.k1.port = 4141 # Use a channel which buffers eventsa1.channels.c1.type = memory a1.channels.c1.capacity = 1000 ionCapacity = 100#Bindthesourceandsinktothechannel .r1.channel
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年IC卡、光卡、非接触卡及其相关设备项目合作计划书
- 2024年食品搅拌均匀机械项目建议书
- 2024年钟表与计时仪器合作协议书
- 2024气焊设备焊接、切割及相关工艺用带截止的快速接头
- 综合练(三) (2)-高考语文教学资料
- 课时52 文言翻译 (一)-把握原则强化语境
- 北师大版小学信息技术三年级下册期中考卷含参考答案
- 北师大版小学科学二年级上册模拟考卷含参考答案
- 英语人教版八年级下册乡村音乐
- 航空公司-英文很齐全
- 2022年齐鲁石化校园招聘笔试题库及答案解析
- CAESAR-II简易操作手册
- 2022年中国通信服务股份有限公司校园招聘笔试模拟试题及答案解析
- (中职)移动商务基础(第二版)第2章移动商务技术概况ppt教学课课件
- 三世演禽命理秘书讲课教案
- 新教材北师大版高中英语必修一 Unit 1单元测试(含答案)
- 7《兼爱》课件-统编版高中语文选择性必修上册
- GB∕T 17794-2021 柔性泡沫橡塑绝热制品
- 湖南深冶铂业科技有限公司贵金属精炼建设项目环评报告书
- 红色勿忘国耻九一八事变通用PPT背景模板
- 旋回破碎机安装分项质量检验评定记录
评论
0/150
提交评论