【问题标题】:Flume to write logs to hdfs if there is any change in input file如果输入文件有任何更改,Flume 将日志写入 hdfs
【发布时间】:2015-04-08 08:29:51
【问题描述】:

我是 Apache Flume 的新手,我有一个用例,其中我有一个输入文件“sample.txt”,它会定期更新,最初包含以下数据

Name   Age    Sex   Address
xxx     20    M        Chennai

有时它会更新为

Name   Age    Sex   Address
YYY    25      F     Salem
ZZZ    18      M     Covai

只要输入文件发生更改,我希望使用 Apache Flume 将此文件写入 hdfs。任何人都可以建议我的链接或任何人都可以告诉我如何实现这一目标

【问题讨论】:

    标签: hadoop hdfs flume-ng


    【解决方案1】:

    您可以将水槽尾巴视为来源。我正在指向一些网址。请参考它们。

       http://www.rittmanmead.com/2014/05/trickle-feeding-webserver-log-files-to-hdfs-using-apache-flume/
    
       http://www.ibm.com/developerworks/library/bd-flumews/
    
       http://mapredit.blogspot.in/2012/03/flumeng-evolution.html
    
        https://flume.apache.org/FlumeUserGuide.html
    
        http://stackoverflow.com/questions/13721930/flume-ng-tail-a-file
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-07
      • 2013-06-26
      • 1970-01-01
      • 1970-01-01
      • 2013-11-26
      相关资源
      最近更新 更多