从风暴螺栓记录 - 它要去哪里? [英] Logging from a storm bolt - where is it going?

查看:25
本文介绍了从风暴螺栓记录 - 它要去哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在集群上的拓扑中部署了几个 Bolt.每个都配置为通过 slf4j 登录.在测试机器上,我让 stdoutfile appenders 工作正常.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆