如果手动运行Flume,Cygnus仅在MySql数据库上预先存储数据

时间:2015-07-06 14:38:24

标签: mysql flume fiware fiware-cygnus

所以我在(Cygnus not presisting data on MySql database)之前遇到了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连接(我正在云端工作),价值就不再存在了。

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

1 个答案:

答案 0 :(得分: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=...