Created 08-05-2019 12:46 PM
We enabled kerberos in our Ambari Cluster ( Ambari version :- 2.7.3.0) with HDP version 3.1.0.0-78. But after kerberos implementation , we are getting the below error in HDFS and HBASE. Please suggest us to resolve the issue.
File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 334, in _assert_valid
self.target_status = self._get_file_status(target)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 497, in _get_file_status
list_status = self.util.run_command(target, 'GETFILESTATUS', method='GET', ignore_status_codes=['404'], assertable_result=False)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 214, in run_command
return self._run_command(*args, **kwargs)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 295, in _run_command
raise WebHDFSCallException(err_msg, result_dict)
resource_management.libraries.providers.hdfs_resource.WebHDFSCallException: Execution of 'curl -sS -L -w '%{http_code}' -X GET -d '' -H 'Content-Length: 0' --negotiate -u : 'http://nladfmrvu11.mtn.co.za:50070/webhdfs/v1/apps/hbase/data?op=GETFILESTATUS'' returned status_code=401.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 401 Authentication required</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /webhdfs/v1/apps/hbase/data. Reason:
<pre> Authentication required</pre></p>
</body>
</html>
Created on 08-05-2019 01:34 PM - edited 08-17-2019 04:22 PM
Can you check that below value in your Advancecore-site is set to TRUE
hadoop.http.authentication.simple.anonymous.allowed=true
Set I to this value
hadoop.security.authentication=simple
Please have a look at this document too Kerberos authentication on Windows
HTH
Created on 08-05-2019 02:34 PM - edited 08-17-2019 04:22 PM
@ Geoffrey Shelton Okot Please note that we are setting this cluster in Linux servers. We are facing this issue after enabling Kerberos in the cluster.
In our cluster the values of the above two properties are below. We need all the services up and running with kerberos implementation.
Created 08-05-2019 06:12 PM
Created 08-06-2019 03:04 PM
We regenerated the keytabs for all the services from Ambari and restarted all the services. Still we are getting the same error with Namenode restart.
File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 295, in _run_command
raise WebHDFSCallException(err_msg, result_dict)
resource_management.libraries.providers.hdfs_resource.WebHDFSCallException: Execution of 'curl -sS -L -w '%{http_code}' -X GET -d '' -H 'Content-Length: 0' --negotiate -u : 'http://nladfmrvu11.mtn.co.za:50070/webhdfs/v1/tmp?op=GETFILESTATUS'' returned status_code=401.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 401 Authentication required</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /webhdfs/v1/tmp. Reason:
<pre> Authentication required</pre></p>
</body>
</html>
Please also let us know if we modify the below two properties in Advancecore-site like below , will the kerberos implementation be impacted :-
Please suggest.
Created 08-27-2019 12:06 AM
Can you change to the following, maintaining the authentication to Kerberos won't compromise your security
hadoop.http.authentication.simple.anonymous.allowed=true
hadoop.security.authentication=kerberos
Please revert