Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
Labels (1)
avatar
Guru

Environment

  • CentOS 7
  • Ambari 2.7.0.0


Error:

After ambari-server setup, and deploying the desired configuration via Ambari, found this error in the ambari-server.log.






p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #000000; background-color: rgba(40, 254, 20, 0.9)}



2018-08-21 20:09:05,733  WARN [ambari-client-thread-36] HttpChannel:507 - /api/v1/clusters//requests/3

org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the URL was not normalized.

        at org.springframework.security.web.firewall.StrictHttpFirewall.getFirewalledRequest(StrictHttpFirewall.java:123)

        at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:193)

        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)

        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)

        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)

        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)

        at org.apache.ambari.server.api.MethodOverrideFilter.doFilter(MethodOverrideFilter.java:73)

        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)

        at org.apache.ambari.server.api.AmbariPersistFilter.doFilter(AmbariPersistFilter.java:53)

        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)

        at org.apache.ambari.server.security.AbstractSecurityHeaderFilter.doFilter(AbstractSecurityHeaderFilter.java:130)

        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)

        at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:51)

        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)

        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:541)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)

        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)

        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1592)

        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)

        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1239)

        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)

        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:481)

        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1561)

        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)

        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1141)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

        at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:561)

        at org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandlerList.java:221)

        at org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandlerList.java:210)

        at org.apache.ambari.server.controller.AmbariHandlerList.handle(AmbariHandlerList.java:140)

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)

        at org.eclipse.jetty.server.Server.handle(Server.java:564)

        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)

        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)

        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)

        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)

        at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)

        at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:122)

        at org.eclipse.jetty.util.thread.strategy.ExecutingExecutionStrategy.invoke(ExecutingExecutionStrategy.java:58)

        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:201)

        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:133)

        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)

        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)

        at java.lang.Thread.run(Thread.java:745)

Ambari UI would be stuck at something like this:

86622-upload.png

Workaround

  • Try the "retry" option, for me it went past the "waiting" state and through to the next error, which is a know issue
File "/usr/lib/ambari-agent/lib/resource_management/core/source.py", line 197, in get_content    raise Fail("Failed to download file from {0} due to HTTP error: {1}".format(self.url, str(ex)))resource_management.core.exceptions.Fail: Failed to download file from http://xlhive3.openstacklocal:8080/resources/mysql-connector-java.jar due to HTTP error: HTTP Error 404: Not Found
  • Try downloading and appropriately naming the mysql-connector jar. If that doesn't work, the copy the jar under /var/lib/ambari-server/resources
  • Restart ambari-server and retry the setup
3,464 Views
0 Kudos
Version history
Last update:
‎08-17-2019 06:40 AM
Updated by:
Contributors