简体   繁体   English

Oozie Java Action System.out

[英]Oozie Java Action System.out

I have oozie java action. 我有oozie java动作。 After successfully completition of the job, I can't find System.out.println output in the oozie log. 成功完成工作后,在oozie日志中找不到System.out.println输出。 I'm looking at web console "Job Log" screen. 我正在查看Web控制台的“作业日志”屏幕。 I see log output there related to my oozie job but not System.out.println output. 我在那里看到与我的oozie作业有关的日志输出,但与System.out.println输出无关。 How can I configure oozie so that I can see outputs of `System.out.println? 如何配置oozie,以便可以看到`System.out.println的输出?

You should override log4j.properties which is inside the hadoop jar file: 您应该覆盖hadoop jar文件中的log4j.properties:

-D log4j.configuration=PATH_TO_FILE

(with a spacebar) (带空格键)

For instance: 例如:

oozie job -oozie "$oozieServerUrl" -config $ooziePath/coordinator.properties -D log4j.configuration=PATH_TO_FILE -run -verbose

You can find these output inside containers of yarn. 您可以在纱线容器中找到这些输出。 Containers location is defined in hadoop conf, you can refer conf if it is difficult to find logs.Each container have 3 files: 容器位置在hadoop conf中定义,如果很难找到日志,可以参考conf。每个容器有3个文件:

  • stderr 斯特德
  • stdout 标准输出
  • syslogs So you may find your output in stdout. syslogs因此,您可能会在stdout中找到输出。 You may also use web ui at port 8088 to see output on browser. 您也可以在端口8088上使用Web ui来查看浏览器上的输出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM