Support Questions

Find answers, ask questions, and share your expertise

How to set yarn application name of hive job

avatar
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

avatar
Rising Star

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

avatar
Contributor

Try --hiveconf hive.session.id=appName

avatar
Contributor

set 'hive.query.name'