<?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 Re: Tez UI not coming up, failing with spnego auth in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Tez-UI-not-coming-up-failing-with-spnego-auth/m-p/165004#M127371</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/334/mkhandekar.html" nodeid="334"&gt;@Mugdha&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I am facing same kind of exception when tried to integrate Knox with AD on Kerberized cluster and followed ambari-server setup-security document which is suggested by you but still same exception remains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;cat /usr/hdp/current/knox-server/logs/gateway.log&lt;/P&gt;&lt;P&gt;ERROR hadoop.gateway (AppCookieManager.java:getAppCookie(126)) - Failed Knox-&amp;gt;Hadoop SPNegotiation authentication for URL: &lt;A href="http://hostname1:50070/webhdfs/v1/?op=GETHOMEDIRECTORY&amp;amp;doAs=username"&gt;http://hostname1:50070/webhdfs/v1/?op=GETHOMEDIRECTORY&amp;amp;doAs=username&lt;/A&gt;&lt;BR /&gt;WARN hadoop.gateway (DefaultDispatch.java:executeOutboundRequest(138)) - Connection exception dispatching request: &lt;A href="http://hostname1:50070/webhdfs/v1/?op=GETHOMEDIRECTORY&amp;amp;doAs=username"&gt;http://hostname1:50070/webhdfs/v1/?op=GETHOMEDIRECTORY&amp;amp;doAs=username&lt;/A&gt; java.io.IOException: SPNego authn failed, can not get hadoop.auth cookie&lt;BR /&gt;&lt;STRONG&gt;java.io.IOException: SPNego authn failed, can not get hadoop.auth cookie&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cat /usr/hdp/current/knox-server/conf/topologies/sample5.xml&lt;/P&gt;&lt;P&gt;&amp;lt;topology&amp;gt;&lt;BR /&gt; &amp;lt;gateway&amp;gt;&amp;lt;provider&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;authentication&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;ShiroProvider&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm" value="org.apache.hadoop.gateway.shirorealm.KnoxLdapRealm"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapContextFactory" value="org.apache.hadoop.gateway.shirorealm.KnoxLdapContextFactory"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.contextFactory" value="$ldapContextFactory"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.contextFactory.url" value="ldaps://abcd123:636"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.contextFactory.systemUsername" value="testuser"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.contextFactory.systemPassword" value="testpassword"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;param name="main.ldapRealm.searchBase" value="DC=org,DC=apache,DC=com"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.userSearchAttributeName" value="sAMAccountName"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.userObjectClass" value="person"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;param name="main.ldapRealm.authorizationEnabled" value="true"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.groupSearchBase" value="OU=Service Accounts,OU=Applications,DC=org,DC=apache,DC=com"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.groupObjectClass" value="group"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.groupIdAttribute" value="sAMAccountName"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.memberAttribute" value="member"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;param name="main.cacheManager" value="org.apache.shiro.cache.ehcache.EhCacheManager"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.securityManager.cacheManager" value="$cacheManager"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.authenticationCachingEnabled" value="true"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;param name="urls./**" value="authcBasic"/&amp;gt;&lt;BR /&gt; &amp;lt;/provider&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;provider&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;authorization&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;AclsAuthz&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;BR /&gt; &amp;lt;/provider&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;provider&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;identity-assertion&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;Default&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;BR /&gt; &amp;lt;/provider&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/gateway&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;NAMENODE&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;hdfs://hostname1:8020&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;JOBTRACKER&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;rpc://hostname2:8050&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;WEBHDFS&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;http://hostname1:50070/webhdfs&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;WEBHCAT&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;http://hostname1:50111/templeton&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;OOZIE&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;http://hostname3:11000/oozie&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;WEBHBASE&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;http://hostname2:8080&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;HIVE&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;http://hostname1:10001/cliservice&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;RESOURCEMANAGER&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;http://hostname2:8088/ws&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;BR /&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;KNOX&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;hostname1&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/topology&amp;gt;&lt;/P&gt;&lt;P&gt;url1: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;curl -u username:password -ik 'https://knoxhost:8443/gateway/sample5/api/v1/version'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK&lt;BR /&gt;Set-Cookie: JSESSIONID=123;Path=/gateway/sample5;Secure;HttpOnly&lt;BR /&gt;Expires: Thu, 01 Jan 1970 00:00:00 GMT&lt;BR /&gt;Content-Length: 169&lt;BR /&gt;Content-Type: application/xml&lt;BR /&gt;Server: Jetty(8.1.14.v20131031)&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;ServerVersion&amp;gt;&lt;BR /&gt; &amp;lt;version&amp;gt;0.6.0.2.4.3.0-227&amp;lt;/version&amp;gt;&lt;BR /&gt; &amp;lt;hash&amp;gt;12322&amp;lt;/hash&amp;gt;&lt;BR /&gt;&amp;lt;/ServerVersion&amp;gt;&lt;/P&gt;&lt;P&gt;url2:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;curl -u &lt;STRONG&gt;username:password &lt;STRONG&gt;-ik&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; 'https://knoxhost:8443/gateway/sample5/webhdfs/v1?op=GETHOMEDIRECTORY'&lt;/STRONG&gt;      
&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Error 500 Server Error&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;h2&amp;gt;HTTP ERROR 500&amp;lt;/h2&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;Problem accessing /gateway/sample5/webhdfs/v1. Reason:&lt;BR /&gt;&amp;lt;pre&amp;gt; Server Error&amp;lt;/pre&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;hr /&amp;gt;&amp;lt;i&amp;gt;&amp;lt;small&amp;gt;Powered by Jetty://&amp;lt;/small&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;br/&amp;gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 17:57:56 GMT</pubDate>
    <dc:creator>kamlepooja_raje</dc:creator>
    <dc:date>2017-10-10T17:57:56Z</dc:date>
    <item>
      <title>Tez UI not coming up, failing with spnego auth</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Tez-UI-not-coming-up-failing-with-spnego-auth/m-p/165001#M127368</link>
      <description>&lt;P&gt;Adapter operation failed » 500: Failed to fetch results by the proxy from url: &lt;A href="http://hostname:8188/ws/v1/timeline/TEZ_DAG_ID?limit=11&amp;amp;_=1490004805683" target="_blank"&gt;http://hostname:8188/ws/v1/timeline/TEZ_DAG_ID?limit=11&amp;amp;_=1490004805683&lt;/A&gt;. Internal Error.. SPNego authentication failed, can not get hadoop.auth cookie
Details:&lt;/P&gt;&lt;P&gt;{
    "message": "Failed to fetch results by the proxy from url: &lt;A href="http://hostname:8188/ws/v1/timeline/TEZ_DAG_ID?limit=11&amp;amp;_=1490004805683" target="_blank"&gt;http://hostname:8188/ws/v1/timeline/TEZ_DAG_ID?limit=11&amp;amp;_=1490004805683&lt;/A&gt;. Internal Error.. SPNego authentication failed, can not get hadoop.auth cookie",
    "status": 500,
    "trace": "java.io.IOException: SPNego authentication failed, can not get hadoop.auth cookie\n\tat org.apache.ambari.server.controller.internal.AppCookieManager.getAppCookie(AppCookieManager.java:123)\n\tat org.apache.ambari.server.controller.internal.URLStreamProvider.processURL(URLStreamProvider.java:228)\n\tat org.apache.ambari.server.view.ViewURLStreamProvider.getHttpURLConnection(ViewURLStreamProvider.java:239)\n\tat org.apache.ambari.server.view.ViewURLStreamProvider.getConnection(ViewURLStreamProvider.java:146)\n\tat org.apache.ambari.server.view.ViewURLStreamProvider.getConnectionAs(ViewURLStreamProvider.java:163)\n\tat org.apache.ambari.server.view.ViewURLStreamProvider.getConnectionAsCurrent(ViewURLStreamProvider.java:180)\n\tat org.apache.ambari.view.tez.utils.ProxyHelper.getResponse(ProxyHelper.java:61)\n\tat org.apache.ambari.view.tez.rest.BaseProxyResource.getData(BaseProxyResource.java:64)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:606)\n\tat com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\n\tat com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\n\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1507)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.apache.ambari.server.security.authorization.AmbariAuthorizationFilter.doFilter(AmbariAuthorizationFilter.java:257)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.apache.ambari.server.security.authorization.jwt.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:96)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)\n\tat org.apache.ambari.server.security.authentication.AmbariAuthenticationFilter.doFilter(AmbariAuthenticationFilter.java:88)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.apache.ambari.server.security.authorization.AmbariUserAuthorizationFilter.doFilter(AmbariUserAuthorizationFilter.java:91)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)\n\tat org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1478)\n\tat org.apache.ambari.server.api.MethodOverrideFilter.doFilter(MethodOverrideFilter.java:72)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1478)\n\tat org.apache.ambari.server.api.AmbariPersistFilter.doFilter(AmbariPersistFilter.java:47)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1478)\n\tat org.apache.ambari.server.view.AmbariViewsMDCLoggingFilter.doFilter(AmbariViewsMDCLoggingFilter.java:54)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1478)\n\tat org.apache.ambari.server.view.ViewThrottleFilter.doFilter(ViewThrottleFilter.java:161)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1478)\n\tat org.apache.ambari.server.security.AbstractSecurityHeaderFilter.doFilter(AbstractSecurityHeaderFilter.java:109)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1478)\n\tat org.apache.ambari.server.security.AbstractSecurityHeaderFilter.doFilter(AbstractSecurityHeaderFilter.java:109)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1478)\n\tat org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)\n\tat org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:294)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1478)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:427)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\n\tat org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandlerList.java:212)\n\tat org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandlerList.java:201)\n\tat org.apache.ambari.server.controller.AmbariHandlerList.handle(AmbariHandlerList.java:150)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:370)\n\tat org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)\n\tat org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:973)\n\tat org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1035)\n\tat org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:641)\n\tat org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:231)\n\tat org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)\n\tat java.lang.Thread.run(Thread.java:745)\n"
}&lt;/P&gt;Request:&lt;P&gt;{
    "adapterName": "dag",
    "url": "http://hostname2:8080/api/v1/views/TEZ/versions/0.7.0.2.5.3.0-136/instances/TEZ_CLUSTER_INSTANCE/resources/atsproxy/ws/v1/timeline/TEZ_DAG_ID",
    "responseHeaders": {
        "User": "admin",
        "Server": "Jetty(8.1.19.v20160209)",
        "X-Frame-Options": "SAMEORIGIN",
        "Content-Length": "11137",
        "X-XSS-Protection": "1; mode=block",
        "Content-Type": "application/json"
    },
    "queryParams": {
        "limit": 11
    },
    "namespace": "dags"
}&lt;/P&gt;Stack:&lt;P&gt;Error: Adapter operation failed
    at ember$data$lib$adapters$errors$AdapterError.EmberError (http://hostname28080/views/TEZ/0.7.0.2.5.3.0-136/TEZ_CLUSTER_INSTANCE/assets/vendor.js:24586:21)
    at ember$data$lib$adapters$errors$AdapterError (http://hostname2:8080/views/TEZ/0.7.0.2.5.3.0-136/TEZ_CLUSTER_INSTANCE/assets/vendor.js:80222:50)
    at Class.handleResponse (http://hostname2:8080/views/TEZ/0.7.0.2.5.3.0-136/TEZ_CLUSTER_INSTANCE/assets/vendor.js:81517:16)
    at Class.hash.error (http://hostname2:8080/views/TEZ/0.7.0.2.5.3.0-136/TEZ_CLUSTER_INSTANCE/assets/vendor.js:81597:33)
    at fire (http://hostname2:8080/views/TEZ/0.7.0.2.5.3.0-136/TEZ_CLUSTER_INSTANCE/assets/vendor.js:3320:30)
    at Object.fireWith [as rejectWith] (http://hostname2:8080/views/TEZ/0.7.0.2.5.3.0-136/TEZ_CLUSTER_INSTANCE/assets/vendor.js:3432:7)
    at done (http://hostname2:8080/views/TEZ/0.7.0.2.5.3.0-136/TEZ_CLUSTER_INSTANCE/assets/vendor.js:8487:14)
    at XMLHttpRequest.&amp;lt;anonymous&amp;gt; (http://hostname2:8080/views/TEZ/0.7.0.2.5.3.0-136/TEZ_CLUSTER_INSTANCE/assets/vendor.js:8826:9)&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 17:21:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Tez-UI-not-coming-up-failing-with-spnego-auth/m-p/165001#M127368</guid>
      <dc:creator>kshiva</dc:creator>
      <dc:date>2017-03-20T17:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Tez UI not coming up, failing with spnego auth</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Tez-UI-not-coming-up-failing-with-spnego-auth/m-p/165002#M127369</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16724/karthikshivanna.html" nodeid="16724"&gt;@Karthik Shivanna&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Set Ambari server for Kerberos:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_Ambari_Security_Guide/content/_optional_set_up_kerberos_for_ambari_server.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_Ambari_Security_Guide/content/_optional_set_up_kerberos_for_ambari_server.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And make sure all the settings for Kerberos for views is in place:&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_ambari_views_guide/content/section_kerberos_setup_tez_view.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_ambari_views_guide/content/section_kerberos_setup_tez_view.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 09:04:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Tez-UI-not-coming-up-failing-with-spnego-auth/m-p/165002#M127369</guid>
      <dc:creator>mugdha</dc:creator>
      <dc:date>2017-04-01T09:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tez UI not coming up, failing with spnego auth</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Tez-UI-not-coming-up-failing-with-spnego-auth/m-p/165003#M127370</link>
      <description>&lt;P&gt;Thanks Mugdha. All the steps were followed initially except  ambari-server setup-security. After this was run, the UI came up.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 12:46:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Tez-UI-not-coming-up-failing-with-spnego-auth/m-p/165003#M127370</guid>
      <dc:creator>kshiva</dc:creator>
      <dc:date>2017-04-01T12:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tez UI not coming up, failing with spnego auth</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Tez-UI-not-coming-up-failing-with-spnego-auth/m-p/165004#M127371</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/334/mkhandekar.html" nodeid="334"&gt;@Mugdha&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I am facing same kind of exception when tried to integrate Knox with AD on Kerberized cluster and followed ambari-server setup-security document which is suggested by you but still same exception remains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;cat /usr/hdp/current/knox-server/logs/gateway.log&lt;/P&gt;&lt;P&gt;ERROR hadoop.gateway (AppCookieManager.java:getAppCookie(126)) - Failed Knox-&amp;gt;Hadoop SPNegotiation authentication for URL: &lt;A href="http://hostname1:50070/webhdfs/v1/?op=GETHOMEDIRECTORY&amp;amp;doAs=username"&gt;http://hostname1:50070/webhdfs/v1/?op=GETHOMEDIRECTORY&amp;amp;doAs=username&lt;/A&gt;&lt;BR /&gt;WARN hadoop.gateway (DefaultDispatch.java:executeOutboundRequest(138)) - Connection exception dispatching request: &lt;A href="http://hostname1:50070/webhdfs/v1/?op=GETHOMEDIRECTORY&amp;amp;doAs=username"&gt;http://hostname1:50070/webhdfs/v1/?op=GETHOMEDIRECTORY&amp;amp;doAs=username&lt;/A&gt; java.io.IOException: SPNego authn failed, can not get hadoop.auth cookie&lt;BR /&gt;&lt;STRONG&gt;java.io.IOException: SPNego authn failed, can not get hadoop.auth cookie&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cat /usr/hdp/current/knox-server/conf/topologies/sample5.xml&lt;/P&gt;&lt;P&gt;&amp;lt;topology&amp;gt;&lt;BR /&gt; &amp;lt;gateway&amp;gt;&amp;lt;provider&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;authentication&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;ShiroProvider&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm" value="org.apache.hadoop.gateway.shirorealm.KnoxLdapRealm"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapContextFactory" value="org.apache.hadoop.gateway.shirorealm.KnoxLdapContextFactory"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.contextFactory" value="$ldapContextFactory"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.contextFactory.url" value="ldaps://abcd123:636"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.contextFactory.systemUsername" value="testuser"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.contextFactory.systemPassword" value="testpassword"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;param name="main.ldapRealm.searchBase" value="DC=org,DC=apache,DC=com"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.userSearchAttributeName" value="sAMAccountName"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.userObjectClass" value="person"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;param name="main.ldapRealm.authorizationEnabled" value="true"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.groupSearchBase" value="OU=Service Accounts,OU=Applications,DC=org,DC=apache,DC=com"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.groupObjectClass" value="group"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.groupIdAttribute" value="sAMAccountName"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.memberAttribute" value="member"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;param name="main.cacheManager" value="org.apache.shiro.cache.ehcache.EhCacheManager"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.securityManager.cacheManager" value="$cacheManager"/&amp;gt;&lt;BR /&gt; &amp;lt;param name="main.ldapRealm.authenticationCachingEnabled" value="true"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;param name="urls./**" value="authcBasic"/&amp;gt;&lt;BR /&gt; &amp;lt;/provider&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;provider&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;authorization&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;AclsAuthz&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;BR /&gt; &amp;lt;/provider&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;provider&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;identity-assertion&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;Default&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;&lt;BR /&gt; &amp;lt;/provider&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/gateway&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;NAMENODE&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;hdfs://hostname1:8020&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;JOBTRACKER&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;rpc://hostname2:8050&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;WEBHDFS&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;http://hostname1:50070/webhdfs&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;WEBHCAT&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;http://hostname1:50111/templeton&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;OOZIE&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;http://hostname3:11000/oozie&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;WEBHBASE&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;http://hostname2:8080&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;HIVE&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;http://hostname1:10001/cliservice&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;RESOURCEMANAGER&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;http://hostname2:8088/ws&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;BR /&gt; &amp;lt;service&amp;gt;&lt;BR /&gt; &amp;lt;role&amp;gt;KNOX&amp;lt;/role&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;hostname1&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;/service&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/topology&amp;gt;&lt;/P&gt;&lt;P&gt;url1: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;curl -u username:password -ik 'https://knoxhost:8443/gateway/sample5/api/v1/version'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK&lt;BR /&gt;Set-Cookie: JSESSIONID=123;Path=/gateway/sample5;Secure;HttpOnly&lt;BR /&gt;Expires: Thu, 01 Jan 1970 00:00:00 GMT&lt;BR /&gt;Content-Length: 169&lt;BR /&gt;Content-Type: application/xml&lt;BR /&gt;Server: Jetty(8.1.14.v20131031)&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;ServerVersion&amp;gt;&lt;BR /&gt; &amp;lt;version&amp;gt;0.6.0.2.4.3.0-227&amp;lt;/version&amp;gt;&lt;BR /&gt; &amp;lt;hash&amp;gt;12322&amp;lt;/hash&amp;gt;&lt;BR /&gt;&amp;lt;/ServerVersion&amp;gt;&lt;/P&gt;&lt;P&gt;url2:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;curl -u &lt;STRONG&gt;username:password &lt;STRONG&gt;-ik&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; 'https://knoxhost:8443/gateway/sample5/webhdfs/v1?op=GETHOMEDIRECTORY'&lt;/STRONG&gt;      
&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Error 500 Server Error&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;h2&amp;gt;HTTP ERROR 500&amp;lt;/h2&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;Problem accessing /gateway/sample5/webhdfs/v1. Reason:&lt;BR /&gt;&amp;lt;pre&amp;gt; Server Error&amp;lt;/pre&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;hr /&amp;gt;&amp;lt;i&amp;gt;&amp;lt;small&amp;gt;Powered by Jetty://&amp;lt;/small&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;br/&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 17:57:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Tez-UI-not-coming-up-failing-with-spnego-auth/m-p/165004#M127371</guid>
      <dc:creator>kamlepooja_raje</dc:creator>
      <dc:date>2017-10-10T17:57:56Z</dc:date>
    </item>
  </channel>
</rss>

