[
https://issues.apache.org/jira/browse/AMBARI-14462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15068150#comment-15068150
]
Hudson commented on AMBARI-14462:
---------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit #4078 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/4078/])
AMBARI-14462. Make Directory with create_parents=True, error messages
(aonishuk:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=2d8721a8babb509b63d85eb26f266ec4c280b7ee])
* ambari-common/src/main/python/resource_management/core/sudo.py
> 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)