【问题标题】:Cygnus only presists data on MySql database if Flume is run manually如果手动运行 Fume,Cygnus 只会将数据保存在 MySql 数据库中
【发布时间】:2015-07-06 14:38:23
【问题描述】:

所以我之前 (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 连接(我在云上工作),这些值就停止了。

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

【问题讨论】:

    标签: mysql flume fiware fiware-cygnus


    【解决方案1】:

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

    AGENT_NAME=root
    

    这是错误的,应该是cygnusagent 而不是root。如 cmets 中所述:

    # 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=...
    

    【讨论】:

    • 在 cmets 中我说我实施了这些更改。我没有正确更新我的答案。它现在已编辑,我已经在 cygnus_instance_c1.conf 中有 AGENT_NAME = cygnusangent
    • 啊,好的,抱歉。也许您可以添加将 Cygnus 作为服务运行时获得的完整日志。如果是大日志,可以使用 Github gist gist.github.com
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-13
    • 1970-01-01
    • 1970-01-01
    • 2012-02-28
    • 2014-01-12
    相关资源
    最近更新 更多