Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

oozie logs from command line

i want to check logs for my oozie application , I know there is way to check the logs from oozie ui clicking on application id and then logs but I want to gett all info using command from command line. I am using below command to access the same :

oozie job -oozie http://<host>11000/oozie/ -info applicationid

but this does not fetch the complete logs what I can see from oozie web ui , how can i check the complete logs from the command line utility ?

my second question :

When I use command line utility I get some of information on logs for the oozie job , does this information also persist completely in /var/log/oozie or there could be more info present under /var/log/oozie for the ozoie job.

2 REPLIES 2

Contributor

When you know your application ID try accessing your yarn logs

Usage: yarn logs -applicationId <application ID> [options]

COMMAND_OPTIONSDescription
-applicationId <application ID>Specifies an application id
-appOwner <AppOwner>AppOwner (assumed to be current user if not specified)
-containerId <ContainerId>ContainerId (must be specified if node address is specified)
-helpHelp
-nodeAddress <NodeAddress>NodeAddress in the format nodename:port (must be specified if container id is specified)


https://hadoop.apache.org/docs/stable/hadoop-yarn/hadoop-yarn-site/YarnCommands.html#logs

@Anurag Mishra,

1) You can run the below command

oozie job -oozie http://<host>:11000/oozie/ -log {oozieJobId}

2) Yes. The logs will also be saved under /var/log/oozie directory.

.

-Aditya

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.