Created 06-12-2018 12:23 PM
HI Team,
I have three node Cluster. I have enabled kerberos in cluster environment. While i'm running any hive query from different users, I'm getting only hive username in history server username who is running query.
How can i enable owner name in application?
sample screenshot attached.
Regards,
Vinay
Created on 06-12-2018 12:36 PM - edited 08-17-2019 07:20 PM
@Vinay K You need to enable user impersonation in hive configuration. Set hive.server2.enable.doAs = true save and restart hive server2. When doAs is set to false, queries execute as the Hive user and not the end user. Setting it to true so that queries will be run as end user instead.
In ambari you can do this change in Hive > Configs > Settings >
HTH
*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
Created on 06-12-2018 12:36 PM - edited 08-17-2019 07:20 PM
@Vinay K You need to enable user impersonation in hive configuration. Set hive.server2.enable.doAs = true save and restart hive server2. When doAs is set to false, queries execute as the Hive user and not the end user. Setting it to true so that queries will be run as end user instead.
In ambari you can do this change in Hive > Configs > Settings >
HTH
*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
Created 06-13-2018 04:55 AM
It's working. Thanks for quick response.
Now i'm running query from end, I'm getting below error in hiveserver2.log
Diagnostics: Application application_1528797729105_0016 initialization failed (exitCode=255) with output: main : command provided 0 main : run as user is asif main : requested yarn user is asif User asif not found
I've configured Kerberos & ranger integrated with Active Directory. I've configured one way trust MIT KDC.
asif user have own kerberos ticket. But still asif user not found.
Can you further help me?
Thanks.
Created 06-13-2018 06:40 AM
Created 06-13-2018 06:49 AM