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 949D01821A for ; Wed, 20 Jan 2016 19:10:41 +0000 (UTC) Received: (qmail 1991 invoked by uid 500); 20 Jan 2016 19:10:41 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 1963 invoked by uid 500); 20 Jan 2016 19:10:41 -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 1540 invoked by uid 99); 20 Jan 2016 19:10:40 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2016 19:10:40 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 54FFB28265C; Wed, 20 Jan 2016 19:10:39 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8319964403391827654==" MIME-Version: 1.0 Subject: Re: Review Request 42497: on region server restart ambari is setting /tmp to hbase:hadoop From: "Andrew Onischuk" To: "Vitalyi Brodetskyi" Cc: "Andrew Onischuk" , "Ambari" Date: Wed, 20 Jan 2016 19:10:39 -0000 Message-ID: <20160120191039.7986.46213@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Andrew Onischuk" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/42497/ X-Sender: "Andrew Onischuk" References: <20160120190630.7986.62602@reviews.apache.org> In-Reply-To: <20160120190630.7986.62602@reviews.apache.org> Reply-To: "Andrew Onischuk" X-ReviewRequest-Repository: ambari --===============8319964403391827654== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/42497/ ----------------------------------------------------------- (Updated Jan. 20, 2016, 7:10 p.m.) Review request for Ambari and Vitalyi Brodetskyi. Bugs: AMBARI-14718 https://issues.apache.org/jira/browse/AMBARI-14718 Repository: ambari Description ------- On my hcube cluster what i am seeing is /tmp gets owned by hbase:hadoop. This is causing services like sssd to fail as /tmp is not owned by root. sssd is a service that we recommend users setup if they want to sync up with AD. With this service failing users are unable to login using AD credentials. Here is the corresponding log owner = params.hbase_user, group = params.user_group, 04:33:56,101 - Directory['/tmp'] {'owner': 'hbase', 'group': 'hadoop', 'mode': 0777, 'recursive': True} 2016-01-19 04:33:56,101 - Changing owner for /tmp from 0 to hbase 2016-01-19 04:33:56,101 - Changing group for /tmp from 0 to hadoop 2016-01-19 04:33:56,102 - Changing permission for /tmp from 1777 to 777 2016-01-19 04:33:56,102 - Directory['/tmp'] {'recursive': True, 'cd_access': 'a'} 2016-01-19 04:33:56,102 - Execute[('chmod', '1777', u'/tmp')] {'sudo': True} 2016-01-19 04:33:56,110 - XmlConfig['hbase-site.xml'] {'owner': 'hbase', 'group': 'hadoop', 'conf_dir': '/usr/hdp/current/hbase-regionserver/conf', 'configuration_attributes': {}, 'configurations': ...} 2016-01-19 04:33:56,126 - Generating config: /usr/hdp/current/hbase-regionserver/conf/hbase-site.xml 2016-01-19 04:33:56,127 - File['/usr/hdp/current/hbase-regionserver/conf/hbase-site.xml'] {'owner': 'hbase', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': None, 'encoding': 'UTF-8'} 2016-01-19 04:33:56,174 - XmlConfig['core-site.xml'] {'owner': 'hbase', 'group': 'hadoop', 'conf_dir': '/usr/hdp/current/hbase-regionserver/conf', 'configuration_attributes': {}, 'configurations': ...} 2016-01-19 04:33:56,185 - Generating config: /usr/hdp/current/hbase-regionserver/conf/core-site.xml 2016-01-19 04:33:56,185 - File['/usr/hdp/current/hbase-regionserver/conf/core-site.xml'] {'owner': 'hbase', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': None, 'encoding': 'UTF-8'} 2016-01-19 04:33:56,210 - XmlConfig['hdfs-site.xml'] {'owner': 'hbase', 'group': 'hadoop', 'conf_dir': '/usr/hdp/current/hbase-regionserver/conf', 'configuration_attributes': {}, 'configurations': ...} 2016-01-19 04:33:56,221 - Generating config: /usr/hdp/current/hbase-regionserver/conf/hdfs-site.xml 2016-01-19 04:33:56,222 - File['/usr/hdp/current/hbase-regionserver/conf/hdfs-site.xml'] {'owner': 'hb This is the cluster this happened on and ssh key for user root is attached Diffs (updated) ----- ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/hbase.py 2b2cf1e ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py 7deef41 ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_client.py 9c6e96a ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_master.py 0f1d810 ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_regionserver.py d105c18 ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py bd1313b Diff: https://reviews.apache.org/r/42497/diff/ Testing ------- mvn clean test Thanks, Andrew Onischuk --===============8319964403391827654==--