首页 文章

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

提问于
浏览
2

所以我在(Cygnus not presisting data on MySql database)之前遇到了MySql数据库上的数据存在问题,并且您可以看到问题已部分解决 . 我在问另一个问题,因为这个问题内部有点不同 .

正如你之前提到的问题所见, the problem was that the Cygnus was running but not starting any Flume component (any source, channel or sink) . 我通过以下方式启动了水槽代理:

/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

如果我这样做,所有问题都解决了, Value 在表格中存在 . 但是,一旦我杀死了进程或退出了ssh连接(我正在 Cloud 端工作), Value 就不再存在了 .

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

1 回答

  • 0

    现在您正在尝试将Cygnus作为服务运行,除了 agent_<id>.conf 之外,我们还需要正确配置 cygnus_instance_<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=...
    

相关问题