Support Questions

Find answers, ask questions, and share your expertise

Ambari:Problem accessing /webhdfs/v1/ats/done Error while enabling kerberos

avatar
Contributor
0favorite

I have installed Ambari 2.5.0 version with HDP 2.6 and added some of the services but while enabling kerberos I am facing one weird issue.

resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w '%
{http_code}' -X GET --negotiate -u : 'http://xxxx:50070/webhdfs/v1/ats/done?
op=GETFILESTATUS&user.name=hdfs'' returned status_code=403. 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
  <title>Error 403   
   org.apache.hadoop.security.authentication.client.AuthenticationException
 </title

</head>
<body><h2>HTTP ERROR 403</h2>
<p>Problem accessing /webhdfs/v1/ats/done. Reason:
<pre>    
org.apache.hadoop.security.authentication.client.AuthenticationException
</pre>
  </p><hr /><i><small>Powered by Jetty://</small></i><br/>                                                
 <br/> 

My installation is getting failed while installing the APP time line server and in the log file there is nothing coming.Everything was working fine before but suddenly it landed into this issue. Any suggestions will be appreciated.

1 ACCEPTED SOLUTION

avatar
Rising Star

Did you try HDFS Service check? Is it successful?

View solution in original post

5 REPLIES 5

avatar
Rising Star

Did you try HDFS Service check? Is it successful?

avatar
Contributor

Yes it is failing after kerberos is enabled with error message:

java.io.IOException: ixxxx:50070: Unexpected HTTP response: code=403 != 200, op=GETDELEGATIONTOKEN, message=org.apache.hadoop.security.authentication.client.AuthenticationException

ambari logged in user:admin

i have also generated ticket for HTTP with spengo keytab for admin user.

avatar
Rising Star

I had the same issue which was due to mixed case of hostname.

I ensured that the hostname is uniform(lower case) and restarted the server.

This fixed the issue.

avatar
Contributor

Thanks a lot.It worked for me after making the hostname to lower case.

avatar
New Contributor

Thanks, It worked for me too.When updating my hostname to lower case.