<?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 User: hive is not allowed to impersonate anonymous in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105026#M67917</link>
    <description>&lt;P&gt;I started working with ooze. I am trying to run work flow examples in the examples folder. However, when I try to run a hive action I get error number E0729. In the log file the error is:&lt;/P&gt;&lt;P&gt; org.apache.hive.service.cli.HiveSQLException: Failed to open new session: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hive is not allowed to impersonate anonymous at org.apache.hive.service.cli.session.SessionManager.openSession(SessionManager.java:266) at org.apache.hive.service.cli.CLIService.openSessionWithImpersonation(CLIService.java:202) at org.apache.hive.service.cli.thrift.ThriftCLIService.getSessionHandle(ThriftCLIService.java:402) 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:1253) at org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession.getResult(TCLIService.java:1238) at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56) at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hive is not allowed to impersonate anonymous at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:83) at org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) at org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) at com.sun.proxy.$Proxy28.open(Unknown Source) at org.apache.hive.service.cli.session.SessionManager.openSession(SessionManager.java:258) ... 12 more Caused by: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hive is not allowed to impersonate anonymous at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:522) at org.apache.hive.service.cli.session.HiveSessionImpl.open(HiveSessionImpl.java:137) at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) ... 20 more&lt;/P&gt;&lt;P&gt;my job.properties is &lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://sandbox.hortonworks.com:8020
jobTracker=sandbox.hortonworks.com:8050
queueName=default
examplesRoot=examples
oozie.use.system.libpath=true
oozie.wf.application.path=${nameNode}/user/${user.name}/${examplesRoot}/apps/hive
&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Jun 2016 03:19:27 GMT</pubDate>
    <dc:creator>hoda_moradi2014</dc:creator>
    <dc:date>2016-06-30T03:19:27Z</dc:date>
    <item>
      <title>User: hive is not allowed to impersonate anonymous</title>
      <link>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105026#M67917</link>
      <description>&lt;P&gt;I started working with ooze. I am trying to run work flow examples in the examples folder. However, when I try to run a hive action I get error number E0729. In the log file the error is:&lt;/P&gt;&lt;P&gt; org.apache.hive.service.cli.HiveSQLException: Failed to open new session: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hive is not allowed to impersonate anonymous at org.apache.hive.service.cli.session.SessionManager.openSession(SessionManager.java:266) at org.apache.hive.service.cli.CLIService.openSessionWithImpersonation(CLIService.java:202) at org.apache.hive.service.cli.thrift.ThriftCLIService.getSessionHandle(ThriftCLIService.java:402) 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:1253) at org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession.getResult(TCLIService.java:1238) at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56) at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hive is not allowed to impersonate anonymous at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:83) at org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) at org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) at com.sun.proxy.$Proxy28.open(Unknown Source) at org.apache.hive.service.cli.session.SessionManager.openSession(SessionManager.java:258) ... 12 more Caused by: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hive is not allowed to impersonate anonymous at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:522) at org.apache.hive.service.cli.session.HiveSessionImpl.open(HiveSessionImpl.java:137) at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) ... 20 more&lt;/P&gt;&lt;P&gt;my job.properties is &lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://sandbox.hortonworks.com:8020
jobTracker=sandbox.hortonworks.com:8050
queueName=default
examplesRoot=examples
oozie.use.system.libpath=true
oozie.wf.application.path=${nameNode}/user/${user.name}/${examplesRoot}/apps/hive
&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jun 2016 03:19:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105026#M67917</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-06-30T03:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: User: hive is not allowed to impersonate anonymous</title>
      <link>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105027#M67918</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2833/hodamoradi2014.html" nodeid="2833"&gt;@hoda moradi&lt;/A&gt;&lt;P&gt;Please add/modify below properties in your core-site.xml&lt;/P&gt;&lt;PRE&gt;hadoop.proxyuser.hive.groups=*
hadoop.proxyuser.hive.hosts=*&lt;/PRE&gt;&lt;P&gt;Restart required services via Ambari UI and retry your query, it should work.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 05:32:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105027#M67918</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-06-30T05:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: User: hive is not allowed to impersonate anonymous</title>
      <link>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105028#M67919</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; Thank you. This solved that error but I get different error now. I get error Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [12] Do you have any idea how to fix this? I already add&lt;/P&gt;&lt;P&gt;&amp;lt;job-xml&amp;gt;$path/hive-site.xml&amp;lt;/job-xml&amp;gt; in my hive-site.xml&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 00:45:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105028#M67919</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-07-01T00:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: User: hive is not allowed to impersonate anonymous</title>
      <link>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105029#M67920</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2833/hodamoradi2014.html" nodeid="2833"&gt;@hoda moradi&lt;/A&gt;&lt;P&gt;Can you please check oozie launcher logs? It should give you more hint.&lt;/P&gt;&lt;P&gt;Please check below link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/9148/troubleshooting-an-oozie-flow.html"&gt;https://community.hortonworks.com/articles/9148/troubleshooting-an-oozie-flow.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 04:09:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105029#M67920</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-07-01T04:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: User: hive is not allowed to impersonate anonymous</title>
      <link>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105030#M67921</link>
      <description>&lt;P&gt;hi &lt;A rel="user" href="https://community.cloudera.com/users/2833/hodamoradi2014.html" nodeid="2833"&gt;@hoda moradi&lt;/A&gt; &lt;EM&gt;I had this same problem. This problem went aways when I added the mysql-connector-java.jar library into the lib directory located inside the oozie project root directory where the job.properties and workflow.xml files are located. &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 19:03:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105030#M67921</guid>
      <dc:creator>omkarmotoe</dc:creator>
      <dc:date>2016-07-21T19:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: User: hive is not allowed to impersonate anonymous</title>
      <link>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105031#M67922</link>
      <description>&lt;P&gt;I solved it by coping all the jar file in /usr/hdp/2.3.2.0-2950/atlas/hook/hive/* directory into lib folder at job.properties level.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 22:48:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/User-hive-is-not-allowed-to-impersonate-anonymous/m-p/105031#M67922</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-07-28T22:48:20Z</dc:date>
    </item>
  </channel>
</rss>

