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

网站建设教程科普织梦网站问题

网站建设教程科普,织梦网站问题,企业网站建设专业精准丨 鸣远科技,菜篮网网站开发技术1 日志服务器上配置Flume,采集本地日志文件#xff0c;发送到172.19.115.96 的flume上进行聚合#xff0c;如日志服务器有多组#xff0c;则在多台服务器上配置相同的配置 # 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 c13 在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.hkea.cn/news/14404794/

相关文章:

  • 网上怎么查自己是不是团员展示型网站可以优化吗
  • 个人网站建设源代码推广软件公司
  • 建设企业网银交易密码是什么广安seo
  • 上住房和城乡建设部网站2022营业执照年审
  • 彩票网站建设服务海外短视频软件
  • 彩票系统网站开发做外贸不能访问国外网站怎么办
  • 教育教学成果展示网站建设自己做网站能赚钱
  • iis6.1的网站建设及权限设置关键词排名优化外包
  • 网站设计专家营销型企业、公司网站案例
  • 网站logo一般多大百度软件中心
  • 英文网站外链查询中国商业数据网
  • 加强企业网站建设苏州大学网站建设目标
  • 潍坊网站制作保定公司网站如何做一张轮播图
  • 邵阳专业网站设计宜昌营销型网站建设
  • 网站seo工作免费网站建设魔坊
  • 网站建设及维护费用新云网站模版
  • 零售网站制作数字创意设计包括哪些工具
  • 地方门户网站资讯该怎么做临沂网站建设教程
  • 苏州专业做网站比较好的公司域名如何连接wordpress
  • 用word做旅游网站网页搭建服务平台
  • 中山网站seo优化园林效果图网站
  • 网站建设 跑业务青岛网站建设收费哪个平台好
  • 注册个体工商户用于网站建设广州做网站的公司
  • 北京欢迎你 网站建设模板建站教程
  • 如何把网站做的和别人一样吗宁波公司注册代理公司
  • 洮南网站建设python如何做网页
  • 知名网站制作公司青岛分公司网络营销是不是网络推广
  • 网站创建教程国外图片设计网站有哪些
  • 网站域名和空间区别汕头公关公司
  • 唐山网站制作中国软文网