Are you using capacity scheduler or some other and then is oozie user allowd in default list's acls ? Also check if hdfs has read and write permission for that user.
On Fri, Dec 2, 2011 at 10:40 AM, Mohammad Islam <[email protected]> wrote: > Hi Suresh, > If the problem is still there, please include the more exception trace, if > there is any. > It generally comes as "Caused by". > > Regards, > Mohammad > > > ________________________________ > From: Suresh S <[email protected]> > To: [email protected] > Sent: Thursday, December 1, 2011 9:21 AM > Subject: Re: AuthorizationException on running a oozie job > > Hi**** > > > > I am using Hadoop version: 0.20.203, and yahoo Oozie version: 3.0.2. > > Successfully ran the oozie, able to see the oozie webconsole,**** > > > > ** ** > > > > Able to run the hadoop job successfully, but When I am trying to run the > example job of oozie, > > > > ** > > > > I get the below exception:**** > > > > ** ** > > > > org.apache.oozie.service.AuthorizationException: E0902: Exception > occured: [java.net.ConnectException: Call to localhost/127.0.0.1:54310failed > on connection exception: java.net.ConnectException: Connection > refused]**** > > > > at > org.apache.oozie.service.AuthorizationService.authorizeForApp(AuthorizationService.java:320)**** > > > > at > org.apache.oozie.servlet.BaseJobServlet.checkAuthorizationForApp(BaseJobServlet.java:185)**** > > > > at > org.apache.oozie.servlet.BaseJobsServlet.doPost(BaseJobsServlet.java:89)**** > > > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:637)**** > > > > at > org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:281)**** > > > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)**** > > > > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)**** > > > > 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:102)**** > > > > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)**** > > > > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)**** > > > > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)**** > > > > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)**** > > > > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)**** > > > > at java.lang.Thread.run(Thread.java:679)**** > > > > ** ** > > > > $ bin/oozie job -config > /home/oozie/oozie_ex/examples/apps/map-reduce/job.properties -run**** > > > > Error: E0902 : E0902: Exception occured: [java.net.ConnectException: > Call to localhost/127.0.0.1:54310 failed on connection exception: > java.net.ConnectException: Connection refused]**** > > > > ** ** > > > > port 54310 is running fine.**** > > > > root@ZETA23089:~# netstat -nltp**** > > > > Active Internet connections (only servers)**** > > > > Proto Recv-Q Send-Q Local Address Foreign Address > State PID/Program name**** > > > > tcp6 0 0 10.105.165.8:54310 :::* > LISTEN 13214/java**** > > > > tcp6 0 0 10.105.165.8:54311 :::* > LISTEN 13553/java**** > > > > ** ** > > > > my job.properties file is correctly pointing to NN/JT:**** > > > > nameNode=hdfs://localhost:54310**** > > > > jobTracker=localhost:54311**** > > > > queueName=default**** > > > > examplesRoot=examples**** > > > > ** ** > > > > oozie.wf.application.path=${nameNode}/user/${user.name > }/${examplesRoot}/apps/map-reduce**** > > > > outputDir=map-reduce**** > > > > ** ** > > > > > > The proxy entries in core-site.xml,**** > > > > Core-site.xml:**** > > > > <property>**** > > > > <name>hadoop.proxyuser.oozie.hosts</name>**** > > > > <value>localhost</value>**** > > > > </property>**** > > > > <property>**** > > > > <name>hadoop.proxyuser.oozie.groups</name>**** > > > > <value>oozie</value>**** > > > > </property> > > > > > > Tried with wild characters in core-site.xml still I get the same > execption. > > > complete oozie.log: > org.apache.oozie.service.AuthorizationException: E0902: Exception occured: > [java.net.ConnectException: Call to localhost/127.0.0.1:54310 failed on > connection exception: java.net.ConnectException: Connection refused] > at > > org.apache.oozie.service.AuthorizationService.authorizeForApp(AuthorizationService.java:320) > at > > org.apache.oozie.servlet.BaseJobServlet.checkAuthorizationForApp(BaseJobServlet.java:185) > at > org.apache.oozie.servlet.BaseJobsServlet.doPost(BaseJobsServlet.java:89) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > at > org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:281) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > 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:102) > at > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > at > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > at java.lang.Thread.run(Thread.java:679) > Caused by: org.apache.oozie.service.HadoopAccessorException: E0902: > Exception occured: [java.net.ConnectException: Call to localhost/ > 127.0.0.1:54310 failed on connection exception: java.net.ConnectException: > Connection refused] > at > > org.apache.oozie.service.KerberosHadoopAccessorService.createFileSystem(KerberosHadoopAccessorService.java:208) > at > > org.apache.oozie.service.AuthorizationService.authorizeForApp(AuthorizationService.java:285) > ... 17 more > Caused by: java.net.ConnectException: Call to > localhost/127.0.0.1:54310failed on connection exception: > java.net.ConnectException: Connection > refused > at org.apache.hadoop.ipc.Client.wrapException(Client.java:1057) > at org.apache.hadoop.ipc.Client.call(Client.java:1033) > at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:224) > at $Proxy23.getProtocolVersion(Unknown Source) > at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:364) > at > org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:106) > at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:208) > at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:175) > at > > org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:89) > at > org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1310) > at org.apache.hadoop.fs.FileSystem.access$100(FileSystem.java:65) > at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1328) > at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:226) > at > > org.apache.oozie.service.KerberosHadoopAccessorService$3.run(KerberosHadoopAccessorService.java:200) > at > > org.apache.oozie.service.KerberosHadoopAccessorService$3.run(KerberosHadoopAccessorService.java:192) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:416) > at > > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1059) > at > > org.apache.oozie.service.KerberosHadoopAccessorService.createFileSystem(KerberosHadoopAccessorService.java:192) > ... 18 more > Caused by: java.net.ConnectException: Connection refused > at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) > at > sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:592) > at > > org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206) > at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:406) > at > org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:414) > at > org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:527) > at > org.apache.hadoop.ipc.Client$Connection.access$1800(Client.java:187) > at org.apache.hadoop.ipc.Client.getConnection(Client.java:1164) > at org.apache.hadoop.ipc.Client.call(Client.java:1010) > ... 35 more > 2011-12-01 20:02:54,128 WARN V1JobsServlet:539 - USER[?] GROUP[users] > TOKEN[-] APP[-] JOB[-] ACTION[-] URL[POST > http://localhost:11000/oozie/v1/jobs?action=start] error[E0902], E0902: > Exception occured: [java.net.ConnectException: Call to localhost/ > 127.0.0.1:54310 failed on connection exception: java.net.ConnectException: > Connection refused] > > > > > Thanks.**** > > > > Suresh S > > > > > > >
