Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.1.2
-
None
Description
After upgrading HDP in Ambari version 2.1.2.1 a task a performed to role edits while restarting JournalNodes. If Kerberos is enabled, the JN Kerberos identity is established before making this call when really the HDFS identity should be established - since this is an administrative HDFS call that requires the HDFS administrator user to perform.
Because of this, the following error is generated and seen in the :
Fail: Execution of 'hdfs dfsadmin -rollEdits' returned 255. rollEdits: Access denied for user jn. Superuser privilege is required
The offending code is
if params.security_enabled:
Execute(params.jn_kinit_cmd, user=params.hdfs_user)
time.sleep(5)
hdfs_roll_edits()
time.sleep(5)
It should probably be something like:
if params.security_enabled:
Execute(params.hdfs_kinit_cmd, user=params.hdfs_user)
time.sleep(5)
hdfs_roll_edits()
time.sleep(5)
Note the change from jn to hdfs in the kinit command line.
This issue has also been posted in https://issues.apache.org/jira/browse/AMBARI-10519.
Attachments
Attachments
Issue Links
- duplicates
-
AMBARI-10519 Ambari 2.0 stack upgrade HDP 2.2.0.0 => 2.2.4.0 breaks on HDFS HA JournalNode rollEdits: "Access denied for user jn. Superuser privilege is required"
- Resolved
- links to