You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2015/12/22 12:04:46 UTC
[jira] [Created] (AMBARI-14462) Make Directory with
create_parents=True, error messages more understanable
Andrew Onischuk created AMBARI-14462:
----------------------------------------
Summary: Make Directory with create_parents=True, error messages more understanable
Key: AMBARI-14462
URL: https://issues.apache.org/jira/browse/AMBARI-14462
Project: Ambari
Issue Type: Bug
Reporter: Andrew Onischuk
Assignee: Andrew Onischuk
Fix For: 2.4.0
Attachments: AMBARI-14462.patch
Example of message:
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/PIG/0.12.0.2.0/package/scripts/pig_client.py", line 67, in <module>
PigClient().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 216, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/PIG/0.12.0.2.0/package/scripts/pig_client.py", line 55, in install
self.configure(env)
File "/var/lib/ambari-agent/cache/common-services/PIG/0.12.0.2.0/package/scripts/pig_client.py", line 35, in configure
pig()
File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk
return fn(*args, **kwargs)
File "/var/lib/ambari-agent/cache/common-services/PIG/0.12.0.2.0/package/scripts/pig.py", line 33, in pig
group = params.user_group
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 157, in __init__
self.env.run()
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
self.run_action(resource, action)
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
provider_action()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 151, in action_create
sudo.makedirs(path, self.resource.mode or 0755)
File "/usr/lib/python2.6/site-packages/resource_management/core/sudo.py", line 51, in makedirs
os.makedirs(path, mode)
File "/usr/lib64/python2.6/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 2] No such file or directory: '/usr/hdp/current/pig-client/conf'
The actual cause was because '/usr/hdp/current/pig-client' was a broken
symlink. Need to be more explicit about that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)