Jonathan Maron created SLIDER-689:
-------------------------------------

             Summary: AgentWebPagesIT fails to run against a kerberos cluster
                 Key: SLIDER-689
                 URL: https://issues.apache.org/jira/browse/SLIDER-689
             Project: Slider
          Issue Type: Bug
          Components: appmaster, Web & REST
            Reporter: Jonathan Maron


The following failure is encountered when running the test against a windows 
secure cluster:

2014-11-26 17:13:27,234 [JUnit] DEBUG framework.SliderShell (?:call(?)) - 
export 
HADOOP_CONF_DIR=/Users/jmaron/dev/workspaces/slider-asf/incubator-slider/src/test/clusters/windows;
export 
SLIDER_CONF_DIR=/Users/jmaron/dev/workspaces/slider-asf/incubator-slider/src/test/clusters/windows/slider;
/Users/jmaron/dev/workspaces/slider-asf/incubator-slider/slider-assembly/target/slider-0.61-incubating-all/slider-0.61-incubating/bin/slider
 lookup --id application_1417013513278_0023 --out 
/Users/jmaron/dev/workspaces/slider-asf/incubator-slider/slider-funtest/target/launch6631360125544500978.json
2014-11-26 17:13:47,389 [JUnit] INFO  test.SliderTestUtils 
(SliderTestUtils.groovy:fetchWebPageWithoutError(477)) - Fetching HTTP content 
at http://hdp01-head.hdp01.local:8088/proxy/application_1417013513278_0023/
2014-11-26 17:13:47,458 [JUnit] WARN  httpclient.HttpMethodBase 
(HttpMethodBase.java:processCookieHeaders(1634)) - Invalid cookie header: 
"hadoop.auth=; Path=/; Domain=    ; Expires=Thu, 01-Jan-1970 00:00:00 GMT; 
HttpOnly". Blank value for domain attribute
2014-11-26 17:13:47,465 [JUnit] WARN  httpclient.HttpMethodDirector 
(HttpMethodDirector.java:processWWWAuthChallenge(697)) - Unable to respond to 
any of these challenges: {negotiate=Negotiate}
2014-11-26 17:13:47,467 [JUnit] ERROR test.SliderTestUtils 
(SliderTestUtils.groovy:fetchWebPageWithoutError(489)) - Request to 
http://hdp01-head.hdp01.local:8088/proxy/application_1417013513278_0023/ failed 
with exit code 401, body length 1430:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 401 Authentication required</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /proxy/application_1417013513278_0023/. Reason:
<pre>    Authentication required</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>

It appears that, in a secure cluster, the 
SliderTestUtils.fetchWebPageWithoutError method may need to add support for 
SPNEGO/Kerberos



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

Reply via email to