Hive User Impersonation
<p>I need some information on Hive user impersonation. I did some research on it and found that by default  HiveServer2 performs a query  processing as the user who submitted query but if <code>hive.server2.enable.doAs</code> set it to false then query will be run as user who started hiveserver2 process.</p>

<p>I need to a create jdbc/thirft connection with hiveserver2 with service account (let’s say with user ‘ABC’ is logged in) but would like to run my hive statement with user that I pass , for example with user ‘XYZ’.</p>

<p>Let me know if anyone has done this before. </p>

<p>Is it possible to do this for Hive ?</p>