<?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 How fix the JA006 error in Oozie. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161526#M123905</link>
    <description>&lt;P&gt;I followed this link &lt;A href="http://lecluster.delaurent.com/oozie-101-your-first-workflow-in-5-minutes/" target="_blank"&gt;http://lecluster.delaurent.com/oozie-101-your-first-workflow-in-5-minutes/&lt;/A&gt; to start with oozie. My job stays at Running state with the JA006 error code. I started my history server but, I still get the same error. How I can resolve this? I am using Oozie 4.2.0.2.3. This is my job.properties: &lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://sandbox.hortonworks.com:8020
jobTracker=sandbox.hortonworks.com:8050
queueName=default
examplesRoot=examples
oozie.wf.application.path=${nameNode}/user/${user.name}/${examplesRoot}/apps/shell
&lt;/PRE&gt;</description>
    <pubDate>Tue, 28 Jun 2016 23:04:30 GMT</pubDate>
    <dc:creator>hoda_moradi2014</dc:creator>
    <dc:date>2016-06-28T23:04:30Z</dc:date>
    <item>
      <title>How fix the JA006 error in Oozie.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161526#M123905</link>
      <description>&lt;P&gt;I followed this link &lt;A href="http://lecluster.delaurent.com/oozie-101-your-first-workflow-in-5-minutes/" target="_blank"&gt;http://lecluster.delaurent.com/oozie-101-your-first-workflow-in-5-minutes/&lt;/A&gt; to start with oozie. My job stays at Running state with the JA006 error code. I started my history server but, I still get the same error. How I can resolve this? I am using Oozie 4.2.0.2.3. This is my job.properties: &lt;/P&gt;&lt;PRE&gt;nameNode=hdfs://sandbox.hortonworks.com:8020
jobTracker=sandbox.hortonworks.com:8050
queueName=default
examplesRoot=examples
oozie.wf.application.path=${nameNode}/user/${user.name}/${examplesRoot}/apps/shell
&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jun 2016 23:04:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161526#M123905</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-06-28T23:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: How fix the JA006 error in Oozie.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161527#M123906</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 share your log? Is your job history server running?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 23:22:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161527#M123906</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-06-28T23:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: How fix the JA006 error in Oozie.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161528#M123907</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; I think I get connection refused. How fix it?&lt;/P&gt;&lt;P&gt;authorization operation, Call From sandbox.hortonworks.com/192.168.60.128 to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  &lt;A href="http://wiki.apache.org/hadoop/ConnectionRefused"&gt;http://wiki.apache.org/hadoop/ConnectionRefused&lt;/A&gt;
org.apache.oozie.servlet.XServletException: E0501: Could not perform authorization operation, Call From sandbox.hortonworks.com/192.168.60.128 to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  &lt;A href="http://wiki.apache.org/hadoop/ConnectionRefused"&gt;http://wiki.apache.org/hadoop/ConnectionRefused&lt;/A&gt;
at org.apache.oozie.servlet.BaseJobServlet.checkAuthorizationForApp(BaseJobServlet.java:271)
at org.apache.oozie.servlet.BaseJobsServlet.doPost(BaseJobsServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:304)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:171)
at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:595)
at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:554)
at org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:176)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:86)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:620)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:745)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 23:57:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161528#M123907</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-06-28T23:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: How fix the JA006 error in Oozie.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161529#M123908</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt;I started it but, how to check is running? I started it with this command mr-jobhistory-daemon.sh start historyserver&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 00:01:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161529#M123908</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-06-29T00:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: How fix the JA006 error in Oozie.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161530#M123909</link>
      <description>&lt;P&gt;Do you have Ambari running? You should be able to check from Ambarithe status of your JHS. Otherwise, this should bring the UI assuming you haven't modified the default ports. &lt;A href="http://&amp;lt;host&amp;gt;:19888" target="_blank"&gt;http://&amp;lt;host&amp;gt;:19888&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 00:26:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161530#M123909</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-06-29T00:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How fix the JA006 error in Oozie.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161531#M123910</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt;Thank you for your response. History server was not running. When I turned it on from amber it fixed that error. Now I have different error. I am submitting a hive action it gives me error E0729. In the log file the error is : Do you know How fix this?&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;</description>
      <pubDate>Wed, 29 Jun 2016 22:57:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161531#M123910</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-06-29T22:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: How fix the JA006 error in Oozie.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161532#M123911</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;/P&gt;&lt;P&gt;Here is the issue you are running into.&lt;/P&gt;&lt;P&gt;User: hive is not allowed to impersonate anonymous at org.apache.hive.service.cli.session.SessionManager.openSession(SessionManager.java:266) at&lt;/P&gt;&lt;P&gt;I am assuming this is simple development and you are not so much concerned about policies. If you are, then only your organization's security team can tell you which users can hive impersonate. But basically you need to enable hive impersonation. Can you see if following is set to true in your hive-site.xml?&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hive.server2.enable.impersonation&amp;lt;/name&amp;gt;
  &amp;lt;description&amp;gt;Enable user impersonation for HiveServer2&amp;lt;/description&amp;gt;
  &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;and check the following link to setup proxyuser settings for hive user in core-site.xml&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_views_guide/content/_setup_HDFS_proxy_user.html"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_views_guide/content/_setup_HDFS_proxy_user.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You need to set the following. Remember, this definitely cannot be * if this is for work and that is where your security team comes in. They will tell you who hive use can impersonate.&lt;/P&gt;&lt;PRE&gt;hadoop.proxyuser.hive.groups=*
hadoop.proxyuser.hive.hosts=*&lt;/PRE&gt;&lt;PRE&gt;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Jul 2016 03:22:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161532#M123911</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-07-01T03:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: How fix the JA006 error in Oozie.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161533#M123912</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; Thank you for your response. By adding hadoop.proxyuser.hive.groups=* I solved that error. However, Now I am getting the new one. I post the new error and log in here &lt;A href="https://community.hortonworks.com/questions/42720/main-class-orgapacheoozieactionhadoophivemain-exit.html"&gt;https://community.hortonworks.com/questions/42720/main-class-orgapacheoozieactionhadoophivemain-exit.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you look at it and let me know if you can fix it?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 03:23:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-fix-the-JA006-error-in-Oozie/m-p/161533#M123912</guid>
      <dc:creator>hoda_moradi2014</dc:creator>
      <dc:date>2016-07-01T03:23:45Z</dc:date>
    </item>
  </channel>
</rss>

