I am running a very simple yarn application where the launch command is just a pipline of simple commands:
"launch_command": "echo XXXXX ; java -version ; hostname ; date ; ls -l /home ; sleep 6000",
When I look for the output in the logs it appears in the prelaunch log files. The output of the "java -version" commands appears in prelaunch.err and the output of the hostname, date, and ls commands appears in prelaunch.out.
Hadoop 22.214.171.124.1.0.0-78 Source code repository firstname.lastname@example.org:hortonworks/hadoop.git -r e4f82af51faec922b4804d0232a637422ec29e64 Compiled by jenkins on 2018-12-06T13:34Z Compiled with protoc 2.5.0 From source with checksum eab9fa2a6aa38c6362c66d8df75774 This command was run using /usr/hdp/126.96.36.199-78/hadoop/hadoop-common-188.8.131.52.1.0.0-78.jar