简体   繁体   English

Flume代理:Flume代理如何从位于不同物理服务器的Web服务器获取数据

[英]Flume agent: How flume agent gets data from a webserver located in different physical server

I am trying to understand Flume and referring to the official page of flume at flume.apache.org 我试图了解Flume,并在flume.apache.org上参考了flume的官方页面

In particular, referring to this section , I am bit confused in this. 特别是,在谈到本节时 ,我对此有些困惑。

Do we need to run the flume agent on the actual webserver or can we run flume agents in a different physical server and acquire data from webserver? 我们需要在实际的Web服务器上运行Flume代理,还是可以在其他物理服务器上运行Fluume代理并从Web服务器获取数据?

If above is correct, then how flume agent gets the data from webserver logs? 如果以上正确,那么水槽代理如何从Web服务器日志中获取数据? How can webserver make its data available to the flume agent ? 网络服务器如何将其数据提供给水槽代理?

Can anyone help understand this? 谁能帮忙了解一下?

The Flume agent must pull data from a source, publish to a channel, which then writes to a sink. Flume代理必须从源中提取数据,然后发布到通道,然后再将其写入接收器。

You can install Flume agent in either a local or remote configuration. 您可以在本地或远程配置中安装Flume代理。 But, keep in mind that having it remote will add some network latency to your event processing, if you are concerned about that. 但是,请记住,如果您担心的话,将其远程放置会增加事件处理的网络延迟。 You can also "multiplex" Flume agents to have one remote aggregation agent, then individual local agents on each web server. 您还可以“复用” Flume代理以具有一个远程聚合代理,然后在每个Web服务器上具有单独的本地代理。

Assuming a flume agent is locally installed using a Spooldir or exec source, it'll essentially tail any file or run that command locally. 假设一个水槽剂使用Spooldir或者exec源本地安装的,它会基本上tail在本地命令的任何文件或运行。 This is how it would get data from logs. 这就是从日志中获取数据的方式。

If the Flume agent is setup as a Syslog or TCP source (see Data ingestion section on network sources), then it can be on a remote machine, and you must establish a network socket in your logging application to publish messages to the other server. 如果将Flume代理设置为Syslog或TCP源(请参阅网络源上的“数据提取”部分),则它可以位于远程计算机上,并且必须在日志记录应用程序中建立网络套接字才能将消息发布到其他服务器。 This is a similar pattern to Apache Kafka. 这与Apache Kafka类似。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM