日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

flume记录(2)监控文件和目录,对hdfs操作

發布時間:2023/12/10 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 flume记录(2)监控文件和目录,对hdfs操作 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?

flume-ng agent --conf-file filename --name a1 -Dflume.root.logger=INFO,console

?

監控某個文件:配制如下

# 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 /root/test.log #<---該文件為要監控的文件# Describe the sink a1.sinks.k1.type = logger# Use a channel which buffers events in memory 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

?

監控某個目錄:配制如下

# Name the components on this agent a1.sources = r1 a1.sinks = k1 a1.channels = c1# Describe/configure the source        進行如下配制 a1.sources.r1.type = spooldir a1.sources.r1.spoolDir = /root/logs      #<----該目錄為要監控的目錄 a1.sources.r1.fileHeader = true        #是否顯示文件頭(也就是文件所在位置)# Describe the sink a1.sinks.k1.type = logger# Use a channel which buffers events in memory 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

?

?

寫入到HDFS:配制如下

# 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 /root/test.log# Describe the sink a1.sinks.k1.type = hdfs a1.sinks.k1.hdfs.path = /flume/events/%y-%m-%d/%H%M/%S a1.sinks.k1.hdfs.filePrefix = events- a1.sinks.k1.hdfs.round = true a1.sinks.k1.hdfs.roundValue = 10 a1.sinks.k1.hdfs.roundUnit = minute a1.sinks.k1.hdfs.useLocalTimeStamp = true# Use a channel which buffers events in memory 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

?

轉載于:https://www.cnblogs.com/kpsmile/p/10331818.html

總結

以上是生活随笔為你收集整理的flume记录(2)监控文件和目录,对hdfs操作的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 欧美一级片网址 | 精品不卡一区 | 一本到av| 桃花久久 | 国模小黎自慰gogo人体 | 毛片视频播放 | 日日干日日操 | 久久精品一日日躁夜夜躁 | 综合在线一区 | 麻豆伊甸园 | 日韩天堂视频 | 女的高潮流时喷水图片大全 | 人人射av | 欧美综合图片 | 青草视频免费在线观看 | 婷婷色一区二区三区 | 狠狠躁18三区二区一区传媒剧情 | 雪白的扔子视频大全在线观看 | 免费成人深夜小野草 | 日日夜夜av | 高h放荡受浪受bl | 翔田千里一区二区三区av | 国产精品老熟女视频一区二区 | 亚洲一区二区自拍偷拍 | 人妻互换免费中文字幕 | 国产综合在线观看视频 | 日本美女一级片 | av日韩中文字幕 | 久久久久国产精品熟女影院 | 色欲色香天天天综合网www | 国产精品婷婷午夜在线观看 | 天堂va蜜桃一区二区三区漫画版 | 特大巨交吊性xxxx | 亚洲综合网在线观看 | 成人在线综合 | 亚洲欧美日韩一区二区三区四区 | 国产夫妻在线视频 | 日韩午夜视频在线观看 | 在线激情视频 | 男女污视频 | 成人午夜毛片 | 色综合天天综合网国产成人网 | 亚洲精品电影在线 | 国产乱淫av片免费 | 小俊大肉大捧一进一出好爽 | 国产在线中文 | 日韩av大片在线观看 | 久久久精品视频在线 | 午夜影剧院 | 99久| 国产一区二区三区麻豆 | 久久3p| 另类ts人妖一区二区三区 | 夜夜嗨av禁果av粉嫩av懂色av | 中文字幕在线有码 | 99有精品 | www国产成人 | 草逼视频网 | 五月婷在线观看 | 亚洲一区二区三区色 | www.97超碰 | 欧美国产一区二区 | 日本伦理一区 | av天天看| 黄色免费网页 | 精品一区二区三区四区视频 | 日本xxxxxxxxx18| 国产高清av在线 | 韩国黄色网 | av专区在线| 成人在线观看一区二区 | 亚洲成人偷拍 | 婷婷综合国产 | 精品人妻无码专区视频 | 三上悠亚在线观看一区二区 | 久久亚洲伊人 | 国产精品18久久久久久无码 | 国产6区| 欧美一区二区福利 | 黄色小说视频 | 国产精品久久久久aaaa | 国产xxx69麻豆国语对白 | 中国美女囗交视频 | 91久久在线观看 | 欧美综合专区 | jizzjizz欧美69巨大| 一出一进一爽一粗一大视频 | 日本中文字幕高清 | 国产二区电影 | 青青草免费在线视频 | 精品国产一级久久 | 午夜九九九| 久久久国产片 | 成人小视频在线播放 | 亚州精品国产精品乱码不99按摩 | 久色免费视频 | 午夜久久久精品 | 国产肥白大熟妇bbbb视频 | 九九热最新视频 |