How do I control a hive job name but keep the stage info?

后端 未结 3 1196
自闭症患者
自闭症患者 2021-01-08 00:31

I have a number of hive queries that my system executes on a regular basis. When you look at the job tracker, they show up as \"SELECT field, other_field ..... (Stage-1)\"

3条回答
  •  半阙折子戏
    2021-01-08 01:05

    I'm not sure there is a way to implement exactly what you wish but I can offer something else.
    Instead of using set mapred.job.name you can add a comment in the beginning of the query with a more helpful name like this :
    -- this is a more helpful name
    SELECT field, other_field ....

    Then, in the jobtracker you'll see -- this is a more helpful name ..... (Stage-%d)"

提交回复
热议问题