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.

How to set yarn application name of hive job

Highlighted

How to set yarn application name of hive job

Expert Contributor

I use HDP 2.4,use hive on Tez.

And i want to set the job name show in yarn resource manger page,

Now the hive job name like HIVE-2f58f71e-4c29-4092-ac04-6e63c15ee223 and application is tez.

How should I set the name of hive job name to let it shows on the yarn resource manager page.

3 REPLIES 3
Highlighted

Re: How to set yarn application name of hive job

Explorer

Hi @darkz yu

Unfortunately, this cannot be set for RM UI. It can only can be correlated in TEZ UI through hive.query.name.

Unlike jobs on MR, where mapred.job.name is used for it.

So far, you cannot do it for RM UI, but you can set hive.query.name and check it on TEZ UI

Reason behind it is that RM UI displays the yarn application name and since in Hive reuses applications heavily there is no 1-1 relationship between application and DAG or query (Tez). For instance.

Please have a look at the following links on this. https://community.hortonworks.com/questions/5309/how-to-set-tez-job-name.html https://issues.apache.org/jira/browse/HIVE-12357

Highlighted

Re: How to set yarn application name of hive job

Explorer

Try --hiveconf hive.session.id=appName

Re: How to set yarn application name of hive job

Explorer

set 'hive.query.name'

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