<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Knox impersonation issue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139635#M102260</link>
    <description>&lt;P&gt;With the new cluster setup, we do not see this issue anymore. I believe issue was due to improper configuration.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2016 14:42:40 GMT</pubDate>
    <dc:creator>vmshah</dc:creator>
    <dc:date>2016-02-26T14:42:40Z</dc:date>
    <item>
      <title>Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139622#M102247</link>
      <description>&lt;P&gt;I have following use case: &lt;/P&gt;&lt;P&gt;Application connecting to Knox gateway and trying to run hive source -&amp;gt; hive target. The way it is transformed is Knox connects to Hive Service and submit the request.&lt;/P&gt;&lt;P&gt;I have user guest created for Knox access and created as Unix user also.
I am trying to impersonate user adapqa while submitting job via Knox. &lt;/P&gt;&lt;P&gt;
I am getting following error in hiveserver2 log. &lt;/P&gt;&lt;P&gt;Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hive is not allowed to impersonate adpqa
        at org.apache.hadoop.ipc.Client.call(Client.java:1427)
        at org.apache.hadoop.ipc.Client.call(Client.java:1358)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
        at com.sun.proxy.$Proxy15.getFileInfo(Unknown Source)
        at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:771)
        at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
        at com.sun.proxy.$Proxy16.getFileInfo(Unknown Source)
        at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:2116)
        at org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1305)
        at org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1301)
        at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
        at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1301)
        at org.apache.hadoop.hive.common.FileUtils.getFileStatusOrNull(FileUtils.java:757)
        at org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider.checkPermissions(StorageBasedAuthorizationProvider.java:364)
        at org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider.authorize(StorageBasedAuthorizationProvider.java:339)
        ... 74 more
2016-02-12 12:38:17,578 INFO  [HiveServer2-HttpHandler-Pool: Thread-36]: thrift.ThriftHttpServlet (ThriftHttpServlet.java:doPost(127)) - Could not validate cookie sent, will try to generate a new cookie
2016-02-12 12:38:17,578 INFO  [HiveServer2-HttpHandler-Pool: Thread-36]: thrift.ThriftHttpServlet (ThriftHttpServlet.java:doPost(169)) - Cookie added for clientUserName anonymous
2016-02-12 12:38:17,578 INFO  [HiveServer2-HttpHandler-Pool: Thread-36]: thrift.ThriftCLIService (ThriftCLIService.java:OpenSession(294)) - Client protocol version: HIVE_CLI_SERVICE_PROTOCOL_V8
2016-02-12 12:38:17,580 INFO  [HiveServer2-HttpHandler-Pool: Thread-36]: metastore.ObjectStore (ObjectStore.java:initialize(290)) - ObjectStore, initialize called
2016-02-12 12:38:18,261 WARN  [HiveServer2-HttpHandler-Pool: Thread-36]: conf.HiveConf (HiveConf.java:initialize(2774)) - HiveConf of name hive.server2.enable.impersonation does not exist
2016-02-12 12:38:18,262 INFO  [HiveServer2-HttpHandler-Pool: Thread-36]: metastore.ObjectStore (ObjectStore.java:getPMF(375)) - Setting MetaStore object pin classes with hive.metastore.cache.pinobjtypes="Table,Database,Type,FieldSchema,Order" &lt;/P&gt;&lt;P&gt;I have made sure that adpqa does exist as a user both on unix and hdfs.&lt;/P&gt;&lt;P&gt; adpqa@ivlhdp61:/var/log/hive&amp;gt; hadoop fs -ls /user &lt;/P&gt;&lt;P&gt;Found 5 items
drwxr-xr-x   - adpqa     supergroup          0 2016-02-12 11:54 /user/adpqa &lt;/P&gt;&lt;P&gt;Both hive and adpqa are part of users group &lt;/P&gt;&lt;P&gt;adpqa@ivlhdp61:/var/log/hive&amp;gt; groups hive &lt;/P&gt;&lt;P&gt;hive : hadoop users &lt;/P&gt;&lt;P&gt;adpqa@ivlhdp61:/var/log/hive&amp;gt; groups adpqa &lt;/P&gt;&lt;P&gt;adpqa : users dialout video hadoop &lt;/P&gt;&lt;P&gt;Following is HDFS configuration on cluster.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2092-config1.png" style="width: 960px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21817i02B3F873CC4C7EDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2092-config1.png" alt="2092-config1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2093-config2.png" style="width: 960px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21818iFA76A6E37AA8A34A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2093-config2.png" alt="2093-config2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am unable to understand why do we get error "User: hive is not allowed to impersonate adpqa". &lt;/P&gt;&lt;P&gt;Is that some more configuration missing?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:26:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139622#M102247</guid>
      <dc:creator>vmshah</dc:creator>
      <dc:date>2019-08-19T08:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139623#M102248</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2675/vgdhavale10.html" nodeid="2675"&gt;@Vishal  Dhavale&lt;/A&gt;&lt;P&gt;Try with * and see if it works. &lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 18:57:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139623#M102248</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-12T18:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139624#M102249</link>
      <description>&lt;P&gt;Can you explain for which property we need to use *.&lt;/P&gt;&lt;P&gt;Actually I have tried * for couple of properties for which there was specific user mentioned. It will help if i can identify due to which i am facing this issue as It is not clear from error message.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 22:07:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139624#M102249</guid>
      <dc:creator>vmshah</dc:creator>
      <dc:date>2016-02-12T22:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139625#M102250</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2767/vmshah.html" nodeid="2767"&gt;@Vishal Shah&lt;/A&gt; I don't want to waste your time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; as I am little confuse by your settings. I do understand and I do see that you have create proxy group for adpqa ...I am curious to see the behavior if you make all settings * for adpqa or remove proxy setting for adpqa&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 22:13:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139625#M102250</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-12T22:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139626#M102251</link>
      <description>&lt;P&gt;Alright. I would give that shot as well. Meanwhile i will try to figure out the culprit property.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 22:16:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139626#M102251</guid>
      <dc:creator>vmshah</dc:creator>
      <dc:date>2016-02-12T22:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139627#M102252</link>
      <description>&lt;P&gt;Looks like you are missing&lt;/P&gt;&lt;PRE&gt;hadoop.proxyuser.knox.groups=users
hadoop.proxyuser.knox.hosts=*&lt;/PRE&gt;&lt;P&gt;Also note that you should probably not have &lt;/P&gt;&lt;PRE&gt;hadoop.proxyuser.guest.groups=users
hadoop.proxyuser.guest.hosts=*&lt;/PRE&gt;&lt;P&gt;as this is essentially saying that the 'guest' user is allowed to impersonate anyone in the 'users' group.&lt;/P&gt;&lt;P&gt;Beyond that you need to ensure that your user 'adpqa' is in group 'users'.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 22:23:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139627#M102252</guid>
      <dc:creator>kevin_minder</dc:creator>
      <dc:date>2016-02-12T22:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139628#M102253</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2767/vmshah.html" nodeid="2767"&gt;@Vishal Shah&lt;/A&gt;&lt;P&gt;See this ...Kevin is Knox expert. Thanks &lt;A rel="user" href="https://community.cloudera.com/users/190/kevinminder.html" nodeid="190"&gt;@Kevin Minder&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 22:31:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139628#M102253</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-12T22:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139629#M102254</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;After adding following properties issue is still same.&lt;/P&gt;&lt;P&gt;hadoop.proxyuser.knox.groups=users&lt;/P&gt;&lt;P&gt;hadoop.proxyuser.knox.hosts=*&lt;/P&gt;&lt;P&gt;Caused by: org.apache.hadoop.hive.ql.parse.SemanticException: MetaException(message:org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hive is not allowed to impersonate adpqa)
        at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.getDatabase(BaseSemanticAnalyzer.java:1386)
        at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.getDatabase(BaseSemanticAnalyzer.java:1378)
        at &lt;/P&gt;&lt;P&gt;On cluster i have made sure adpqa is group users&lt;/P&gt;&lt;P&gt;adpqa@ivlhdp61:/var/log/hive&amp;gt; groups adpqa &lt;/P&gt;&lt;P&gt;adpqa : users dialout video hadoop &lt;/P&gt;&lt;P&gt;adpqa@ivlhdp61:/var/log/hive&amp;gt; groups hive &lt;/P&gt;&lt;P&gt;hive : hadoop users&lt;/P&gt;&lt;P&gt;One more thing i had found was following from hiveserver2 log. &lt;/P&gt;&lt;P&gt;2016-02-15 14:20:18,497 WARN [HiveServer2-HttpHandler-Pool: Thread-39]: conf.HiveConf (HiveConf.java:initialize(2774)) - HiveConf of name hive.server2.enable.impersonation does not exist &lt;/P&gt;&lt;P&gt;Although property is set to true for Hive Service in Ambari. Not sure if this is the actual reason for impersonation not working while connecting to HiveServer2 via Knox. &lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 17:21:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139629#M102254</guid>
      <dc:creator>vmshah</dc:creator>
      <dc:date>2016-02-15T17:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139630#M102255</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2767/vmshah.html" nodeid="2767"&gt;@Vishal Shah&lt;/A&gt;, you also need, in Hive--&amp;gt;Configs:&lt;/P&gt;&lt;PRE&gt;webhcat.proxyuser.knox.groups=*
webhcat.proxyuser.knox.hosts=*
hive.server2.allow.user.substitution=true&lt;/PRE&gt;&lt;P&gt;Try knox.groups and hosts first with "*" and if it works reduce permissions to for example "users" and your KNOX host FQDN. Full manual &lt;A href="http://knox.apache.org/books/knox-0-6-0/user-guide.html"&gt;here&lt;/A&gt;, scroll down to the Hive section.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 14:01:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139630#M102255</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-02-16T14:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139631#M102256</link>
      <description>&lt;P&gt;Hi Predrag,&lt;/P&gt;&lt;P&gt;We tried this as well. But issue still exist.&lt;/P&gt;&lt;P&gt;It is strange that using beeline with same jdbc connection string i am able to execute queries successfully.&lt;/P&gt;&lt;P&gt;But when running from an application it does not work.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 18:43:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139631#M102256</guid>
      <dc:creator>vmshah</dc:creator>
      <dc:date>2016-02-16T18:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139632#M102257</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2767/vmshah.html" nodeid="2767" target="_blank"&gt;@Vishal Shah&lt;/A&gt;  Your connection works fine without knox?&lt;/P&gt;&lt;P&gt;Is this set to true? &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2161-screen-shot-2016-02-16-at-64542-am.png" style="width: 1286px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21816iC16E0990DEB6A9D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2161-screen-shot-2016-02-16-at-64542-am.png" alt="2161-screen-shot-2016-02-16-at-64542-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:26:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139632#M102257</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2019-08-19T08:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139633#M102258</link>
      <description>&lt;P&gt;I didn't understand that beeline was working via Knox already.  A few questions then:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What application is making the HS2 call via Knox?&lt;/LI&gt;&lt;LI&gt;Is the application using JDBC or ODBC drivers and what version?&lt;/LI&gt;&lt;LI&gt;What does your JDBC connect string look like (without real hostname or passwords of course)?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 16 Feb 2016 22:49:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139633#M102258</guid>
      <dc:creator>kevin_minder</dc:creator>
      <dc:date>2016-02-16T22:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139634#M102259</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;Thanks for the reply. I was away for a while couldn't follow up on the issue.&lt;/P&gt;&lt;P&gt;With the new cluster setup, we do not see this issue anymore. I believe issue was due to improper configuration.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 14:42:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139634#M102259</guid>
      <dc:creator>vmshah</dc:creator>
      <dc:date>2016-02-26T14:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139635#M102260</link>
      <description>&lt;P&gt;With the new cluster setup, we do not see this issue anymore. I believe issue was due to improper configuration.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 14:42:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139635#M102260</guid>
      <dc:creator>vmshah</dc:creator>
      <dc:date>2016-02-26T14:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Knox impersonation issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139636#M102261</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are having the same issue with and our HDP version is 2.4.2, here are all the setting we have already implemented. Our beeline works for all users. There is no permission issue either.&lt;/P&gt;&lt;P&gt;Here is the error logs and I have already attached few settings from our environment.&lt;/P&gt;&lt;P&gt;2017-01-03 10:04:22,851 INFO  [HiveServer2-Handler-Pool: Thread-67181]: thrift.ThriftCLIService (ThriftCLIService.java:OpenSession(294)) - Client protocol version: HIVE_CLI_SERVICE_PROTOCOL_V1
2017-01-03 10:04:22,854 WARN  [HiveServer2-Handler-Pool: Thread-67181]: thrift.ThriftCLIService (ThriftCLIService.java:OpenSession(308)) - Error opening session:
org.apache.hive.service.cli.HiveSQLException: Failed to validate proxy privilege of tabsrvtest for btaylo
  at org.apache.hive.service.auth.HiveAuthFactory.verifyProxyAccess(HiveAuthFactory.java:379)
  at org.apache.hive.service.cli.thrift.ThriftCLIService.getProxyUser(ThriftCLIService.java:731)
  at org.apache.hive.service.cli.thrift.ThriftCLIService.getUserName(ThriftCLIService.java:367)
  at org.apache.hive.service.cli.thrift.ThriftCLIService.getSessionHandle(ThriftCLIService.java:394)
  at org.apache.hive.service.cli.thrift.ThriftCLIService.OpenSession(ThriftCLIService.java:297)
  at org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession.getResult(TCLIService.java:1257)
  at org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession.getResult(TCLIService.java:1242)
  at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
  at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
  at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:562)
  at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.hadoop.security.authorize.AuthorizationException: User: tabsrvtest is not allowed to impersonate 
&lt;/P&gt;&lt;P&gt;btaylo&lt;/P&gt;&lt;P&gt;
  at org.apache.hadoop.security.authorize.DefaultImpersonationProvider.authorize(DefaultImpersonationProvider.java:119)
  at org.apache.hadoop.security.authorize.ProxyUsers.authorize(ProxyUsers.java:102)
  at org.apache.hadoop.security.authorize.ProxyUsers.authorize(ProxyUsers.java:116)
  at org.apache.hive.service.auth.HiveAuthFactory.verifyProxyAccess(HiveAuthFactory.java:375)
  ... 13 more
&lt;/P&gt;&lt;P&gt;2017-01-03 10:04:22,866 WARN  [HiveServer2-Handler-Pool: Thread-67181]: thrift.ThriftCLIService (ThriftCLIService.java:CloseSession(456)) - Error closing session:
java.nio.BufferUnderflowException
at java.nio.Buffer.nextGetIndex(Buffer.java:506)
  at java.nio.HeapByteBuffer.getLong(HeapByteBuffer.java:412)
  at org.apache.hive.service.cli.HandleIdentifier.&amp;lt;init&amp;gt;(HandleIdentifier.java:46)
  at org.apache.hive.service.cli.Handle.&amp;lt;init&amp;gt;(Handle.java:38)
  at org.apache.hive.service.cli.SessionHandle.&amp;lt;init&amp;gt;(SessionHandle.java:45)
  at org.apache.hive.service.cli.SessionHandle.&amp;lt;init&amp;gt;(SessionHandle.java:41)
  at org.apache.hive.service.cli.thrift.ThriftCLIService.CloseSession(ThriftCLIService.java:447)
  at org.apache.hive.service.cli.thrift.TCLIService$Processor$CloseSession.getResult(TCLIService.java:1277)
  at org.apache.hive.service.cli.thrift.TCLIService$Processor$CloseSession.getResult(TCLIService.java:1262)
  at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
  at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
  at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:562)
  at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:745)&lt;/P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11181-core-site.png"&gt;core-site.png&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11182-hive-settings.png"&gt;hive-settings.png&lt;/A&gt;</description>
      <pubDate>Fri, 06 Jan 2017 07:44:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-impersonation-issue/m-p/139636#M102261</guid>
      <dc:creator>melba_swapana</dc:creator>
      <dc:date>2017-01-06T07:44:12Z</dc:date>
    </item>
  </channel>
</rss>

