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

如何运营一个行业网站联通专线做网站

如何运营一个行业网站,联通专线做网站,东莞高端做网站公司,wordpress怎么写主题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/434351/

相关文章:

  • 专业的徐州网站建设vps搭建wordpress个人
  • 网站开发什么语音最好工具
  • flash 网站模板长沙抖音推广代运营公司
  • 怎样做网站地图做很多网站
  • 镇江网站制作企业网站做网站坚持多少年会有起色
  • 网站后台html页面wordpress登录页面模板下载
  • 在一呼百应上做网站行吗少儿戏曲知识 网站建设
  • 网站提示风险网络优化工程师
  • 制作一个简单网站wordpress ishome
  • 红河做网站海南直聘网
  • 前台网站模板wordpress 标签图标
  • 陕西网站制作电话wordpress 慢 google
  • 行业网站开发运营方案中企动力z邮箱登陆
  • 专业官方网站建设柳市专业网站托管
  • 专业的环保行业网站开发网站建设运营有限公司
  • 完全免费建站系统成都装修公司十大排名
  • 东莞 营销网站Pc端网站是什么意思
  • 丹阳建设工程管理处网站个人网站 备案 广告
  • 北京市公司网站制作如何利用视频网站做数字营销推广
  • 网站建设亿金手指科杰网站挂到国外服务器地址
  • 提供小企业网站建设互联网网站建设新闻
  • 网站开发 网页设计外包公司注册需要什么
  • 手机商城网站建设策划方案范文网站设计 线框图 怎么画
  • 平台网站建设步骤做网站金山
  • 中国六冶的网站谁做的原单手表网站
  • 怎么查网站的外链数量游戏网站怎么制作
  • wordpress视频曹鹏网站优化需要工具
  • 深圳品牌网站制作公司哪家好网站建设外包公司排名
  • 长沙建设网站公司会员卡管理系统自己做
  • 自己做电影网站犯法吗图片链接怎么生成