简体   繁体   中英

Oozie Java Action System.out

I have oozie java action. After successfully completition of the job, I can't find System.out.println output in the oozie log. I'm looking at web console "Job Log" screen. I see log output there related to my oozie job but not System.out.println output. How can I configure oozie so that I can see outputs of `System.out.println?

You should override log4j.properties which is inside the hadoop jar file:

-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:

  • stderr
  • stdout
  • syslogs So you may find your output in stdout. You may also use web ui at port 8088 to see output on browser.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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