风暴0.10.0 cluster.xml配置


CC-f
2025-03-10 08:34:23 (11天前)


风暴
</跨度>
-0.10.0当我配置cluster.xml时,我使用$ {storm.home} / logs / $ {logfile.name}之类的

风暴
</跨度>
-0.9.0,但是$ {storm.home}和$ {logfile.name}的值没有确定,为什么?

2 条回复
  1. 0# v-star*위위 | 2019-08-31 10-32



    Log4j2有许多不同类型的查找。它们以前缀为特色。对于系统属性,前缀为

    sys:




    所以试试吧

    ${sys:storm.home}/logs/${sys:logfile.name}




    也可以看看

    http://logging.apache.org/log4j/2.x/manual/lookups.html

    欲获得更多信息。


登录 后才能参与评论