从防暴螺栓记录-往哪里去? [英] Logging from a storm bolt - where is it going?
问题描述
我有几个螺栓部署到集群上的拓扑.每个配置都通过 slf4j 进行记录.在测试机上,我使 stdout 和 file 附加程序都能正常工作.
I have several bolts deployed to a topology on a cluster. Each is configured to log via slf4j. On the test machine I get both the stdout and the file appenders working fine.
当我将此部署到群集时,日志记录似乎消失了.据我所知,在风暴日志中(在主管计算机上),/var/log/*或其他任何地方都没有任何信息.
When I deploy this to the cluster the logging seems to have disappeared. I don't get anything in the storm logs (on the supervisor machines), to /var/log/* or anywhere else as far as I can tell.
我应该能够在Storm Worker中使用日志记录系统吗?如果是这样,是否有技巧来获取消息?
Should I be able to use a logging system inside a storm worker? If so, is there a trick to getting the messages?
所有机器都在运行CentOS 6.6 x64
Machines are all running CentOS 6.6 x64
推荐答案
就我而言(使用官方Storm docker映像),日志位于超级用户容器中:
In my case (using the official storm docker image) logs were in the supervisor container:
/logs/workers-artifacts/MyTopology-1-123123123/123/worker.log
这篇关于从防暴螺栓记录-往哪里去?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!