falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nigel Jones (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-915) Failed to load data. Error: 400 Param user.name can't be empty - Web UI/0.6
Date Tue, 25 Nov 2014 15:59:12 GMT

    [ https://issues.apache.org/jira/browse/FALCON-915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14224726#comment-14224726
] 

Nigel Jones commented on FALCON-915:
------------------------------------

Nothing unusual reported in log files at time of request:

[root@sandbox falcon]# netstat -lnp | grep 15000
tcp        0      0 :::15000                    :::*                        LISTEN      21004/java
[root@sandbox falcon]# ps -ef | grep 21004
falcon   21004     1  0 09:19 ?        00:02:27 /usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin/java
-Xmx1024m -Dfalcon.embeddedmq=True -Dfalcon.emeddedmq.port=61616 -Dfalcon.log.dir=/var/log/falcon
-Dfalcon.embeddedmq.data=/hadoop/falcon/embeddedmq/data -Dfalcon.home=/usr/hdp/current/falcon-client
-Dconfig.location=/usr/hdp/current/falcon-client/conf -Dfalcon.app.type=falcon -Dfalcon.catalog.service.enabled=
-cp /usr/hdp/current/falcon-client/conf:/usr/hdp/2.2.0.0-1084/hadoop/conf:/usr/hdp/2.2.0.0-1084/hadoop/lib/*:/usr/hdp/2.2.0.0-1084/hadoop/.//*:/usr/hdp/2.2.0.0-1084/hadoop-hdfs/./:/usr/hdp/2.2.0.0-1084/hadoop-hdfs/lib/*:/usr/hdp/2.2.0.0-1084/hadoop-hdfs/.//*:/usr/hdp/2.2.0.0-1084/hadoop-yarn/lib/*:/usr/hdp/2.2.0.0-1084/hadoop-yarn/.//*:/usr/hdp/2.2.0.0-1084/hadoop-mapreduce/lib/*:/usr/hdp/2.2.0.0-1084/hadoop-mapreduce/.//*::/usr/share/java/mysql-connector-java-5.1.17.jar:/usr/share/java/mysql-connector-java.jar:/usr/hdp/current/hadoop-mapreduce-client/*:/usr/hdp/current/tez-client/*:/usr/hdp/current/tez-client/lib/*:/etc/tez/conf:/usr/hdp/current/falcon-client/server/webapp/falcon/WEB-INF/classes:/usr/hdp/current/falcon-client/server/webapp/falcon/WEB-INF/lib/*:/usr/hdp/current/falcon-client/libext/*
org.apache.falcon.Main -app /usr/hdp/current/falcon-client/server/webapp/falcon -port 15000
root     23755  5165  0 15:56 pts/0    00:00:00 grep 21004
[root@sandbox falcon]#

[root@sandbox falcon]# ls -latr
total 40
-rw-r--r--   1 falcon hadoop 2063 Oct 29 13:01 falcon.out.2014102913011414587705
-rw-r--r--   1 falcon hadoop 2063 Nov 14 14:39 falcon.out.2014111414381415975901
-rw-r--r--   1 falcon hadoop 2063 Nov 14 14:49 falcon.out.2014111414481415976531
-rw-r--r--   1 falcon hadoop 2063 Nov 19 17:20 falcon.out.2014111917201416417618
-rw-r--r--   1 falcon hadoop 2063 Nov 21 14:44 falcon.out.2014112114441416581048
drwxr-xr-x. 26 root   root   4096 Nov 24 14:47 ..
-rw-r--r--   1 falcon hadoop 1722 Nov 24 14:48 falcon.out.2014112414481416840516
drwxr-xr-x   3 falcon falcon 4096 Nov 24 14:59 .
-rw-r--r--   1 falcon hadoop 2063 Nov 24 14:59 falcon.out.2014112414591416841154
drwxr-xr-x   2 falcon hadoop 4096 Nov 25 15:56 retry
[root@sandbox falcon]#

Can post config if required

> Failed to load data. Error: 400 Param user.name can't be empty - Web UI/0.6
> ---------------------------------------------------------------------------
>
>                 Key: FALCON-915
>                 URL: https://issues.apache.org/jira/browse/FALCON-915
>             Project: Falcon
>          Issue Type: Bug
>          Components: ui
>         Environment: HDP 2.2, hortonworks sandbox vm, falcon 0.6, CentOS 6 x86_64
>            Reporter: Nigel Jones
>
> * Login to ambari admin/admin at http://sandbox.hortonworks.com:8080/
> * Navigate to falcon/quick links/Falcon Web UI 
> * links to http://sandbox.hortonworks.com:15000/
> * Error displayed "Failed to load data. Error: 400 Param user.name can't be empty"
> * Google java script reports error as " Failed to load resource: the server responded
with a status of 400 (Param user.name can't be empty)" on http://sandbox.hortonworks.com:15000/api/entities/list/feed?fields=status
> * Click on processes -> same error (goes to http://sandbox.hortonworks.com:15000/index.html?type=process)
> * Manually add user name ie go to http://sandbox.hortonworks.com:15000/index.html?type=process&user.name=falcon
> * 2 processes I have installed are now listed correctly. No errors
> * Click on one (cleanseEmailProcess... from the HDP falcon samples)
> * Same error from the get
> * Re-add username -> http://sandbox.hortonworks.com:15000/entity.html?type=PROCESS&id=cleanseEmailProcess&user.name=falcon
> * Process definitions and dependencies now visible in list view or graph view. However
an error "Failed to load data. Error: 400 Bad Request" still occurs on the page
> In more detail... 
> The initial errors are simply a bad response from the server of the form
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
> <title>Error 400 Param user.name can't be empty</title>
> </head>
> <body><h2>HTTP ERROR 400</h2>
> <p>Problem accessing /api/entities/list/process. Reason:
> <pre>    Param user.name can't be empty</pre></p><hr /><i><small>Powered
by Jetty://</small></i><br/>                                           
    
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> <br/>                                                
> </body>
> </html>
> whilst the last of these bad requests is:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?><instancesResult><status>FAILED</status><message>org.apache.falcon.FalconException:
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
User: falcon is not allowed to impersonate falcon
> 	at org.apache.falcon.entity.EntityUtil.getAllStagingPaths(EntityUtil.java:600)
> 	at org.apache.falcon.workflow.engine.OozieWorkflowEngine.findBundles(OozieWorkflowEngine.java:269)
> 	at org.apache.falcon.workflow.engine.OozieWorkflowEngine.findBundles(OozieWorkflowEngine.java:304)
> 	at org.apache.falcon.workflow.engine.OozieWorkflowEngine.getCoordActions(OozieWorkflowEngine.java:845)
> 	at org.apache.falcon.workflow.engine.OozieWorkflowEngine.doJobAction(OozieWorkflowEngine.java:551)
> 	at org.apache.falcon.workflow.engine.OozieWorkflowEngine.getStatus(OozieWorkflowEngine.java:521)
> 	at org.apache.falcon.resource.AbstractInstanceManager.getStatus(AbstractInstanceManager.java:132)
> 	at org.apache.falcon.resource.InstanceManager.getStatus(InstanceManager.java:99)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.falcon.resource.channel.IPCChannel.invoke(IPCChannel.java:49)
> 	at org.apache.falcon.resource.proxy.InstanceManagerProxy$3.doExecute(InstanceManagerProxy.java:151)
> 	at org.apache.falcon.resource.proxy.InstanceManagerProxy$3.doExecute(InstanceManagerProxy.java:1)
> 	at org.apache.falcon.resource.proxy.InstanceManagerProxy$InstanceProxy.execute(InstanceManagerProxy.java:357)
> 	at org.apache.falcon.resource.proxy.InstanceManagerProxy.getStatus_aroundBody4(InstanceManagerProxy.java:155)
> 	at org.apache.falcon.resource.proxy.InstanceManagerProxy$AjcClosure5.run(InstanceManagerProxy.java:1)
> 	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
> 	at org.apache.falcon.aspect.AbstractFalconAspect.logAroundMonitored(AbstractFalconAspect.java:51)
> 	at org.apache.falcon.resource.proxy.InstanceManagerProxy.getStatus(InstanceManagerProxy.java:136)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
> 	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
> 	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
> 	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
> 	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> 	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
> 	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> 	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
> 	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
> 	at org.apache.falcon.security.FalconAuthorizationFilter.doFilter(FalconAuthorizationFilter.java:73)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> 	at org.apache.falcon.security.FalconAuthenticationFilter$2.doFilter(FalconAuthenticationFilter.java:187)
> 	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:572)
> 	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:542)
> 	at org.apache.falcon.security.FalconAuthenticationFilter.doFilter(FalconAuthenticationFilter.java:197)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> 	at org.apache.falcon.security.FalconAuditFilter.doFilter(FalconAuditFilter.java:56)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
> 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:326)
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> 	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
User: falcon is not allowed to impersonate falcon
> 	at org.apache.hadoop.ipc.Client.call(Client.java:1468)
> 	at org.apache.hadoop.ipc.Client.call(Client.java:1399)
> 	at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:232)
> 	at com.sun.proxy.$Proxy22.getListing(Unknown Source)
> 	at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getListing(ClientNamenodeProtocolTranslatorPB.java:554)
> 	at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	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.$Proxy23.getListing(Unknown Source)
> 	at org.apache.hadoop.hdfs.DFSClient.listPaths(DFSClient.java:1946)
> 	at org.apache.hadoop.hdfs.DFSClient.listPaths(DFSClient.java:1929)
> 	at org.apache.hadoop.hdfs.DistributedFileSystem.listStatusInternal(DistributedFileSystem.java:693)
> 	at org.apache.hadoop.hdfs.DistributedFileSystem.access$600(DistributedFileSystem.java:105)
> 	at org.apache.hadoop.hdfs.DistributedFileSystem$15.doCall(DistributedFileSystem.java:755)
> 	at org.apache.hadoop.hdfs.DistributedFileSystem$15.doCall(DistributedFileSystem.java:751)
> 	at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
> 	at org.apache.hadoop.hdfs.DistributedFileSystem.listStatus(DistributedFileSystem.java:751)
> 	at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1485)
> 	at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1525)
> 	at org.apache.falcon.entity.EntityUtil.getAllStagingPaths(EntityUtil.java:589)
> 	... 65 more
> </message><requestId>1fecf11c-a483-4dd4-bfa2-b30cb387cc3d</requestId></instancesResult>
> The cause may be bad setup in HDP 2.2, or user error.... but may require error checking
if so?
> logs/config to be added



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message