Try --hiveconf hive.session.id=session_id_name.
Then, the job name will be HIVE-session_id_name.
AFAK, this is the best option for your request.
If there is a better way, please share here.
Hope it helps.
Thank you.

On Sat, Jan 21, 2017 at 6:56 AM, Gopal Vijayaraghavan <gop...@apache.org> wrote:
>
>> So no one has a solution?
> …
>> “mapreduce.job.name” works for M/R queries, not Tez.
>
> Depends on the Hive version you're talking about.
>
> https://issues.apache.org/jira/browse/HIVE-12357
>
> That doesn't help you with YARN, but only with the TezUI (since each YARN AM 
> runs > 1 queries).
>
> For something like an ETL workload, I suspect we can name CLI sessions, but 
> not queries independently.
>
> https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionState.java#L314
>
> Cheers,
> Gopal
>
>
>

Reply via email to