2

所以我之前对 MySql 数据库上的数据存在问题(Cygnus 没有在 MySql 数据库上保存数据),正如您所见,问题已部分解决。我在问另一个问题,因为这在问题内部有点不同。

正如我之前提出的问题所见,问题在于 Cygnus 正在运行但没有启动任何 Flume 组件(任何源、通道或接收器)。我通过以下方式启动了水槽代理:

/usr/cygnus/bin/cygnus-flume-ng agent --conf /usr/cygnus/conf/ -f /usr/cygnus/conf/agent_a1.conf -n cygnusagent -Dflume.root.logger=INFO,console

如果我这样做了,所有问题都得到了解决,并且这些值都被放在了桌子上。但是,一旦我终止了进程或退出了 ssh 连接(我在云上工作),这些值就停止了。

您可以在我上面提供的链接中看到我正在使用的日志、数据和脚本。

4

1 回答 1

0

现在您正在尝试将 Cygnus 作为服务运行,cygnus_instance_<id>.conf除了该文件之外,我们还需要正确配置该文件agent_<id>.conf。看看你的文件,我看到了:

AGENT_NAME=root

这是错误的,应该cygnusagent代替root. 如评论中所述:

# Name of the agent. The name of the agent is not trivial, since it is
# the base for the Flume parameters naming conventions, e.g. it appears
# in .sources.http-source.channels=...
于 2015-07-08T12:59:43.043 回答