Support Questions

Find answers, ask questions, and share your expertise

what is the difference between hive.server2.enable.do='true' and hive.server2.enable.impersnation='true'?

avatar
Expert Contributor

what is the difference between hive.server2.enable.do='true' and hive.server.enabler.impersnation='true'?

1 ACCEPTED SOLUTION

avatar

@kavitha velaga

hive.server2.enable.do= True --> Run hive scripts as end user instead of Hive user.

= False --> All the jobs will run as hive user.

hive.server2.enable.impersnation --It's old property and no longer in use.

for more info on Hive impersnation:

http://hortonworks.com/blog/best-practices-for-hive-authorization-using-apache-ranger-in-hdp-2-2/

View solution in original post

6 REPLIES 6

avatar

Hi @kavitha velaga

https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2

This is the new standard to impersonate (doAs)

hive.server2.enable.doAs – Impersonate the connected user, default true.

The most recent documentation doesn't seem to discuss "hive.server2.enable.impersonation", therefore, I'd stick with doAs

avatar
Expert Contributor

thank you very much Ryan

avatar
Super Guru
@kavitha velaga

I think they are both same and hive community may have changed to the newer "doAs". Try setting hive.server.enable.impersonation to false. I don't think it will make a difference. The property used is hive.server2.enable.doAs

avatar
Expert Contributor

thank you very much

avatar

@kavitha velaga

hive.server2.enable.do= True --> Run hive scripts as end user instead of Hive user.

= False --> All the jobs will run as hive user.

hive.server2.enable.impersnation --It's old property and no longer in use.

for more info on Hive impersnation:

http://hortonworks.com/blog/best-practices-for-hive-authorization-using-apache-ranger-in-hdp-2-2/

avatar
Expert Contributor

thank you very much Divakar