hive中设置jobname
hive> set mapred.job.name=test;
两种情况,
1,成功,end
2,失败报错,cannot modify mapred.job.name at runtime,it is not in list of params that are allowed to be modified at runtime
hive.security.authorization.sqlstd.confwhitelist;
<property>
<name>hive.security.authorization.sqlstd.confwhitelist.append</name>
<value>map .job.name</value>
</property>
配置完成后重启hive的所有组件
参考博客https://blog.csdn.net/CPP_MAYIBO/article/details/88085414
https://blog.51cto.com/xiaolanlan/2374064?source=dra
以及QQ群534749847群主
文章来源: https://blog.csdn.net/pollydejia/article/details/97014630