命令行 Flume 抛出错误
我想用flume从控制台收集日志,我用以下命令启动flume:
process_which_generates_the_log | flume node_nowatch -1 -n node -c 'node : console | agentBESink("localhost", 12345)'
但它说:
10/09/22 13:59:21 INFO agent.FlumeNode:从命令行加载规范:'node:console | agentBESink("localhost", 12345)'
10/09/22 13:59:21 警告agent.FlumeNode:加载节点时捕获异常:解析器错误:位置-1第0行出现意外的“null”:“节点:控制台|” agentBESink("localhost", 12345)'
我错过了什么?我关注了 cloudera 的如何操作。预计会起作用,不是吗?
I want to collect logs from the console with flume, I start flume with the following command:
process_which_generates_the_log | flume node_nowatch -1 -n node -c 'node : console | agentBESink("localhost", 12345)'
but it says:
10/09/22 13:59:21 INFO agent.FlumeNode: Loading spec from command line: 'node : console | agentBESink("localhost", 12345)'
10/09/22 13:59:21 WARN agent.FlumeNode: Caught exception loading node:Parser error: unexpected 'null' at position -1 line 0: 'node : console | agentBESink("localhost", 12345)'
what am I missing? I followed cloudera's howto. it is expected to work isn't it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我找到了,需要一个分号!
正确的命令是:
Okay, I've found it, a semicolon is needed!
the correct command is: