Return-Path: X-Original-To: apmail-ambari-issues-archive@minotaur.apache.org Delivered-To: apmail-ambari-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E69618EDC for ; Thu, 31 Mar 2016 15:33:28 +0000 (UTC) Received: (qmail 679 invoked by uid 500); 31 Mar 2016 15:33:26 -0000 Delivered-To: apmail-ambari-issues-archive@ambari.apache.org Received: (qmail 129 invoked by uid 500); 31 Mar 2016 15:33:25 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 99782 invoked by uid 99); 31 Mar 2016 15:33:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2016 15:33:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9D4ED2C1F6A for ; Thu, 31 Mar 2016 15:33:25 +0000 (UTC) Date: Thu, 31 Mar 2016 15:33:25 +0000 (UTC) From: "Robert Levas (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-15645) Upgrading Kerberized JournalNode requires HDFS principal to perform 'role edits' task MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-15645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Levas updated AMBARI-15645: ---------------------------------- Attachment: AMBARI-15645_branch-2.2_01.patch > Upgrading Kerberized JournalNode requires HDFS principal to perform 'role edits' task > ------------------------------------------------------------------------------------- > > Key: AMBARI-15645 > URL: https://issues.apache.org/jira/browse/AMBARI-15645 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.1.2 > Reporter: Robert Levas > Assignee: Robert Levas > Fix For: 2.2.2 > > Attachments: AMBARI-15645_branch-2.2_01.patch, AMBARI-15645_trunk_01.patch > > > 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 : > {noformat} > Fail: Execution of 'hdfs dfsadmin -rollEdits' returned 255. rollEdits: Access denied for user jn. Superuser privilege is required > {noformat} > The offending code is > {code:title=common-services/HDFS/2.1.0.2.0/package/scripts/journalnode_upgrade.py} > if params.security_enabled: > Execute(params.jn_kinit_cmd, user=params.hdfs_user) > time.sleep(5) > hdfs_roll_edits() > time.sleep(5) > {code} > It should probably be something like: > {code:title=common-services/HDFS/2.1.0.2.0/package/scripts/journalnode_upgrade.py} > if params.security_enabled: > Execute(params.hdfs_kinit_cmd, user=params.hdfs_user) > time.sleep(5) > hdfs_roll_edits() > time.sleep(5) > {code} > *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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)