gpt4 book ai didi

logging - 命令行水槽引发错误

转载 作者:行者123 更新时间:2023-12-04 06:45:57 24 4
gpt4 key购买 nike

我想用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: 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)'


我错过了什么?我关注了 cloudera's howto .它有望工作不是吗?

最佳答案

好的,我找到了,需要一个分号!

正确的命令是:

process_which_generates_the_log | flume node_nowatch -1 -n node -c 'node : console | agentBESink("localhost", 12345);'

关于logging - 命令行水槽引发错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3768969/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com