Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3B7A1200BF6 for ; Tue, 10 Jan 2017 13:19:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3A363160B4B; Tue, 10 Jan 2017 12:19:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8B2C5160B3D for ; Tue, 10 Jan 2017 13:19:00 +0100 (CET) Received: (qmail 37350 invoked by uid 500); 10 Jan 2017 12:18:59 -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 37339 invoked by uid 99); 10 Jan 2017 12:18:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2017 12:18:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 56CC12C03DE for ; Tue, 10 Jan 2017 12:18:59 +0000 (UTC) Date: Tue, 10 Jan 2017 12:18:59 +0000 (UTC) From: "Pradarttana (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-19442) Ownership is changed before the creation of directory in ZEPPELIN master.py MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 10 Jan 2017 12:19:01 -0000 Pradarttana created AMBARI-19442: ------------------------------------ Summary: Ownership is changed before the creation of directory in ZEPPELIN master.py Key: AMBARI-19442 URL: https://issues.apache.org/jira/browse/AMBARI-19442 Project: Ambari Issue Type: Bug Reporter: Pradarttana Priority: Blocker ownership is changed before the creation of directory in ZEPPELIN master.py file :- /var/lib/ambari-agent/cache/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py {code} def configure(self, env): import params import status_params env.set_params(params) env.set_params(status_params) self.create_zeppelin_log_dir(env) self.chown_zeppelin_pid_dir(env) # create the pid and zeppelin dirs Directory([params.zeppelin_pid_dir, params.zeppelin_dir], owner=params.zeppelin_user, group=params.zeppelin_group, cd_access="a", create_parents=True, mode=0755 ) # write out zeppelin-site.xml XmlConfig("zeppelin-site.xml", conf_dir=params.conf_dir, configurations=params.config['configurations']['zeppelin-config'], owner=params.zeppelin_user, group=params.zeppelin_group {code} The Failure message :- {code} Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py", line 375, in Master().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 287, in execute method(env) File "/var/lib/ambari-agent/cache/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py", line 172, in start self.configure(env) File "/var/lib/ambari-agent/cache/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py", line 119, in configure self.chown_zeppelin_pid_dir(env) File "/var/lib/ambari-agent/cache/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py", line 111, in chown_zeppelin_pid_dir sudo=True) File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__ self.env.run() File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run self.run_action(resource, action) File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run tries=self.resource.tries, try_sleep=self.resource.try_sleep) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner result = function(command, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper result = _call(command, **kwargs_copy) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call raise ExecutionFailed(err_msg, code, out, err) resource_management.core.exceptions.ExecutionFailed: Execution of 'chown -R cstm-zeppelin:cstm-zeppelin /var/run/zeppelin' returned 1. chown: cannot access '/var/run/zeppelin': No such file or directory {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)