Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

oozie logs from command line

Highlighted

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

Re: oozie logs from command line

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

Highlighted

Re: oozie logs from command line

@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

Don't have an account?
Coming from Hortonworks? Activate your account here