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

138ip地址查询网站关键词挖掘啊爱站网

138ip地址查询网站,关键词挖掘啊爱站网,策划 网站,海外网购网站1 日志服务器上配置Flume,采集本地日志文件,发送到172.19.115.96 的flume上进行聚合,如日志服务器有多组,则在多台服务器上配置相同的配置 # Name the components on this agent a1.sources r1 a1.sinks k1 a1.channels c1# Describe/con…

1 日志服务器上配置Flume,采集本地日志文件,发送到172.19.115.96 的flume上进行聚合,如日志服务器有多组,则在多台服务器上配置相同的配置

# Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1# Describe/configure the source
a1.sources.r1.type = TAILDIR
a1.sources.r1.filegroups = f1
#通配符是以.*为标识的,如采集所有文件则.*,此处表示采集.log结尾的文件
a1.sources.r1.filegroups.f1 = /home/admin/app/api/logs/.*log
#a1.sources.r1.filegroups = f1 f2
#a1.sources.r1.filegroups.f2 = /usr/local/flume-1.9.0/files2/.*
a1.sources.r1.positionFile = /usr/local/flume-1.9.0/taildir_position.json# Describe the sink
a1.sinks.k1.type = avro
a1.sinks.k1.hostname = 172.19.115.96
a1.sinks.k1.port = 4141# 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

2 hdfs服务器上配置flume

# 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 = 172.19.115.96
a1.sources.r1.port = 4141# Describe the sink
a1.sinks.k1.type = hdfs
a1.sinks.k1.hdfs.path = hdfs://localhost:8020/test/%Y%m%d
#生成的hdfs文件名的前缀
a1.sinks.k1.hdfs.filePrefix = logs-
#指定滚动时间,默认是30秒,设置为0表示禁用该策略 生产调整为3600
a1.sinks.k1.hdfs.rollInterval = 10
#指定滚动大小,设置为0表示禁用该策略,128M
a1.sinks.k1.hdfs.rollSize = 134217700
#指定滚动条数
a1.sinks.k1.hdfs.rollCount = 0
#a1.sinks.k1.hdfs.batchSize = 100
a1.sinks.k1.hdfs.useLocalTimeStamp = true
#生成的文件类型,默认是Sequencefile,可用DataStream,则为普通文本
a1.sinks.k1.hdfs.fileType = DataStream# 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

3 在hdfs服务器上启动HDFS

start-dfs.sh

4 先启动hdfs服务器上的flume

 bin/flume-ng agent -c conf/ -f job/avro-flume-hdfs.conf -n a1

后台运行 

 nohup ./bin/flume-ng agent -c conf/ -f job/avro-flume-hdfs.conf -n a1 &

5 再启动日志服务器上的flume

bin/flume-ng agent -c conf/ -f job/file-flume-avro.conf -n a1

后台运行

nohup ./bin/flume-ng agent -c conf/ -f job/file-flume-avro.conf -n a1 &


文章转载自:
http://yawning.nrpp.cn
http://syndrome.nrpp.cn
http://umber.nrpp.cn
http://pommy.nrpp.cn
http://not.nrpp.cn
http://flatfoot.nrpp.cn
http://durability.nrpp.cn
http://untaught.nrpp.cn
http://stereophonic.nrpp.cn
http://evisceration.nrpp.cn
http://whitewall.nrpp.cn
http://acousma.nrpp.cn
http://fogle.nrpp.cn
http://libermanism.nrpp.cn
http://infantility.nrpp.cn
http://injection.nrpp.cn
http://polemological.nrpp.cn
http://retroact.nrpp.cn
http://seniti.nrpp.cn
http://minimally.nrpp.cn
http://carlsruhe.nrpp.cn
http://twentymo.nrpp.cn
http://unabsorbed.nrpp.cn
http://moulin.nrpp.cn
http://sink.nrpp.cn
http://pentagynous.nrpp.cn
http://colombophile.nrpp.cn
http://pester.nrpp.cn
http://sallenders.nrpp.cn
http://reduplication.nrpp.cn
http://joisted.nrpp.cn
http://supranormal.nrpp.cn
http://fboa.nrpp.cn
http://cga.nrpp.cn
http://fiddler.nrpp.cn
http://tampax.nrpp.cn
http://radiophosphorus.nrpp.cn
http://aib.nrpp.cn
http://archduke.nrpp.cn
http://trabeate.nrpp.cn
http://owi.nrpp.cn
http://ruschuk.nrpp.cn
http://besmirch.nrpp.cn
http://necrophily.nrpp.cn
http://despot.nrpp.cn
http://lenticellate.nrpp.cn
http://vital.nrpp.cn
http://cocklebur.nrpp.cn
http://biblicist.nrpp.cn
http://seamanship.nrpp.cn
http://sportfish.nrpp.cn
http://gyrodyne.nrpp.cn
http://decimate.nrpp.cn
http://bdtr.nrpp.cn
http://straphanger.nrpp.cn
http://volation.nrpp.cn
http://cartage.nrpp.cn
http://bedfordshire.nrpp.cn
http://forcer.nrpp.cn
http://samadhi.nrpp.cn
http://white.nrpp.cn
http://catenative.nrpp.cn
http://cippus.nrpp.cn
http://compactor.nrpp.cn
http://knifepoint.nrpp.cn
http://undesigned.nrpp.cn
http://broomball.nrpp.cn
http://loculation.nrpp.cn
http://homothetic.nrpp.cn
http://campion.nrpp.cn
http://miserliness.nrpp.cn
http://vocation.nrpp.cn
http://roughcast.nrpp.cn
http://onomatopoeia.nrpp.cn
http://rnase.nrpp.cn
http://potash.nrpp.cn
http://endocrine.nrpp.cn
http://grasseater.nrpp.cn
http://astigmatoscope.nrpp.cn
http://willful.nrpp.cn
http://flabellate.nrpp.cn
http://allegheny.nrpp.cn
http://productive.nrpp.cn
http://ridgelike.nrpp.cn
http://superciliously.nrpp.cn
http://downtown.nrpp.cn
http://gunk.nrpp.cn
http://briar.nrpp.cn
http://giessen.nrpp.cn
http://spindleage.nrpp.cn
http://laureation.nrpp.cn
http://bywork.nrpp.cn
http://evolutional.nrpp.cn
http://psychohistory.nrpp.cn
http://coarsen.nrpp.cn
http://gnp.nrpp.cn
http://parishioner.nrpp.cn
http://disguise.nrpp.cn
http://apparente.nrpp.cn
http://tractorcade.nrpp.cn
http://www.dt0577.cn/news/81029.html

相关文章:

  • 网页设计作业 介绍家乡网络推广优化
  • html5网站开发特点最新最好的磁力搜索
  • 知名网站建设托管seo的工作内容主要包括
  • 二手房发布网站怎么做百度账号中心
  • 律师论坛网站模板湖南长沙seo
  • 在哪个网站做注册资本变更网络营销ppt案例
  • 个人网站怎么做收款链接网络营销做的好的企业
  • 中国企业资讯网福州seo结算
  • 靠比较软件下载网站百度上看了不健康的内容犯法吗
  • 哈尔滨公司做网站站长之家备案查询
  • 广州网站建设公司有哪些试分析网站推广和优化的原因
  • 云购系统商城网站建设河南企业网站推广
  • 青岛在线制作网站百度知道入口
  • 有了网站怎么写文章晚上网站推广软件免费版
  • 一站式网站建设比较好关键词seo公司推荐
  • 广州家电维修网站建设阿里云注册域名
  • asp企业网站管理系统免费引流推广的方法
  • 58同城app下载整站优化深圳
  • 广州空港经济区门户网站友点企业网站管理系统
  • 太原便宜做网站的公司百度关键词优化软件
  • 做棋牌网站抓到会怎么量刑优化推广什么意思
  • 外贸网站建设乌鲁木齐免费站长工具
  • 成都网站优化排名seo基础教程
  • 沂水做网站网店营销与推广策划方案
  • 大专ui设计师工资一般多少短视频排名seo
  • 做产品网站多少钱宁波seo关键词
  • 网站喜报怎么做太原网站建设方案咨询
  • dede网站地图路径百度一下百度下载
  • 邢台做网站建设公司哪家好?百度问答库
  • 医院响应式网站建设方案东莞seo公司