Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE92C1758F for ; Tue, 6 Jan 2015 20:00:34 +0000 (UTC) Received: (qmail 38177 invoked by uid 500); 6 Jan 2015 20:00:36 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 38142 invoked by uid 500); 6 Jan 2015 20:00:36 -0000 Mailing-List: contact dev-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 dev@ambari.apache.org Received: (qmail 38126 invoked by uid 99); 6 Jan 2015 20:00:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 20:00:35 +0000 Date: Tue, 6 Jan 2015 20:00:35 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-8795) MapReduce service components should indicate security state MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-8795?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D142= 66657#comment-14266657 ]=20 Hudson commented on AMBARI-8795: -------------------------------- SUCCESS: Integrated in Ambari-trunk-Commit-docker #674 (See [https://builds= .apache.org/job/Ambari-trunk-Commit-docker/674/]) AMBARI-8795. MapReduce service components should indicate security state (r= levas) (rlevas: http://git-wip-us.apache.org/repos/asf?p=3Dambari.git&a=3Dc= ommit&h=3D25726ae176919208a4290f7901d76c2b43720657) * ambari-server/src/main/resources/stacks/HDP/2.0.6/services/YARN/package/s= cripts/status_params.py * ambari-server/src/main/resources/stacks/HDP/2.0.6/services/YARN/package/s= cripts/historyserver.py * ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py > MapReduce service components should indicate security state > ----------------------------------------------------------- > > Key: AMBARI-8795 > URL: https://issues.apache.org/jira/browse/AMBARI-8795 > Project: Ambari > Issue Type: Improvement > Components: ambari-server, stacks > Affects Versions: 2.0.0 > Reporter: Robert Levas > Assignee: Robert Levas > Labels: kerberos, security, stack > Fix For: 2.0.0 > > Attachments: AMBARI-8795_01.patch > > > The MAPREDUCE2 service components should indicate security state when que= ried by Ambari Agent via STATUS_COMMAND. Each component should determine i= t's state as follows: > h3. HISTORYSERVER > h4. Indicators > * Command JSON > ** config\['configurations']\['cluster-env']\['security_enabled']=20 > *** =3D =E2=80=9Ctrue=E2=80=9D > * Configuration File: params.hive_client_conf_dir + =E2=80=98mapred-site.= xml=E2=80=99 > ** mapreduce.jobhistory.principal > *** not empty > *** required > ** mapreduce.jobhistory.keytab > *** not empty > *** path exists and is readable > *** required > ** mapreduce.jobhistory.webapp.spnego-principal > *** not empty > *** required > ** mapreduce.jobhistory.webapp.spnego-keytab-file > *** not empty > *** path exists and is readable > *** required > h4. Pseudocode > {code} > if indicators imply security is on and validate > if kinit(mapreduce.jobhistory.principal) succeeds > state =3D SECURED_KERBEROS > else > state =3D ERROR=20 > else > state =3D UNSECURED > {code} > _*Note*_: Due to the _cost_ of calling {{kinit}} results should be cached= for a period of time before retrying. This may be an issue depending on t= he frequency of the heartbeat timeout. -- This message was sent by Atlassian JIRA (v6.3.4#6332)