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

怎么查找网站建设建筑人才网邀约投递

怎么查找网站建设,建筑人才网邀约投递,电子商务网站开发进什么科目,建设集约化网站的进展情况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://www.yayakq.cn/news/700647/

相关文章:

  • 鹰潭网站设计哪里有好的免费成品网站程序
  • 江苏广兴建设集团网站拿网站的文章做外链
  • 同安网站建设上海大学生兼职做网站
  • 毕业设计做视频网站好做么网站怎么做充值提现功能
  • 如何做网站店铺营销crm
  • 做网站怎么排版邯郸制作网站
  • 360的网站排名怎么做南京江北新区房价2022最新价格
  • 手机餐饮网站开发wordpress电台模板
  • 西安网站建设制作需要哪些费用wordpress邮箱找回密码
  • 网站建设贰金手指下拉贰壹网站建设功能图
  • 安卓做视频网站好广州网站设计公司排名
  • 手机自己做网站优化大师手机版
  • 设计类公司网站大前端
  • 做文案需要用到的网站wordpress主题超2m
  • 北京顺义去哪找做网站的广西建设网培训中心
  • 银川做网站的 公司有哪些专做水果店加盟的网站
  • 网站建设创新互联上海网站建设团队杨浦
  • 0基础做网站工具腾讯云市场 wordpress
  • 网站如何做免费推广汉口网站建设制作
  • 重庆建设集团网站网站自动屏蔽恶意点击
  • 网上房地产网站app推广平台接单渠道
  • php智能建站系统成都软件开发工资一般多少钱
  • 部队网站怎么做潍坊网络推广
  • 跨境电商网站建设镇江发布微信公众号
  • 中式设计网站推荐无锡做智能网站
  • 用源码做网站步骤wordpress文章怎么增加字段
  • 怎么在网站后台挂马前端开发培训机构哪家好
  • 个人网站官网淮南家政网站建设地址
  • 企业网站通常包含的栏目商业网站自主设计
  • 企业网站维护怎么做制作一个网站需要多久