[
https://issues.apache.org/jira/browse/AMBARI-19442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Renjith Kamath updated AMBARI-19442:
------------------------------------
Attachment: AMBARI-19442-trunk-v1.patch
> 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
> Assignee: Renjith Kamath
> Priority: Blocker
> Attachments: AMBARI-19442-branch-2.5-v1.patch,
> AMBARI-19442-trunk-v1.patch
>
>
> 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 <module>
> 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)