Reputation: 363
I am trying to get spark application id from unix based on oozie id. I am able to get map reduce job id when i try with oozie -info <oozie_id>@<action_name>
. How can I get spark application id
Upvotes: 1
Views: 3225
Reputation: 1410
There are two IDs for a oozie Spark action. And both aren’t same.
To get both the ids:
oozie -info <oozie_id>@<action_name>
will give you oozie launcher ID.oozie job -info <oozie-launcher-id> | grep racking
this will give you spark application id using oozie launcher ID that you will get from the 1st command.Note: grep racking
actually stands for grep tracking
but at the moment I forgot if it starts with capital T
or small t
but racking
will do the job.
Upvotes: 0
Reputation: 2072
From Web UI:
to get to a spark application log,
go to oozie's web console
and find the hadoop job Id
of that action
such as : job_202007171535_0223
you can get app id by replacing job
with application
in job id, such as application_202007171535_0223
from job_202007171535_0223
using the hadoop job/application id from step 1, go to Yarn Resource Manager WebUI
to look into that logs
(common for hive/hadoop/spark jobs which are managed by YARN)
access to Spark UI
for the debugging DAG,Stages,fine tuning using the app id, such as application_202007171535_0223
From command line interface, the above steps would be:
Run oozie cmd to get hadoop job id:
oozie job -info <your job id here>
look for External Id
in the output, such as : job_202007171535_0223
you can get app id by replacing job
with application
in job id, such as application_202007171535_0223
from job_202007171535_0223
Run the below YARN cmd to get YARN job logs (common for hive/hadoop/spark jobs which are managed by YARN):
yarn logs -applicationId <your app id here>
Upvotes: 2