[
https://issues.apache.org/jira/browse/AMBARI-5783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Siddharth Wagle updated AMBARI-5783:
------------------------------------
Attachment: AMBARI-5783.patch
> Pig fails to install through bluprint
> -------------------------------------
>
> Key: AMBARI-5783
> URL: https://issues.apache.org/jira/browse/AMBARI-5783
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 1.6.1
> Reporter: Siddharth Wagle
> Assignee: Arsen Babych
> Fix For: 1.6.1
>
> Attachments: AMBARI-5783.patch
>
>
> During installation through blueprint pig install fails with next exception:
> {code}
> Traceback (most recent call last):
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/PIG/package/scripts/pig_client.py",
> line 41, in <module>
> PigClient().execute()
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 112, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/PIG/package/scripts/pig_client.py",
> line 30, in install
> self.configure(env)
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/PIG/package/scripts/pig_client.py",
> line 35, in configure
> pig()
> File
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/PIG/package/scripts/pig.py",
> line 40, in pig
> properties=params.pig_properties)
> File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
> line 148, in __init__
> self.env.run()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 149, in run
> self.run_action(resource, action)
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 115, in run_action
> provider_action()
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/properties_file.py",
> line 48, in action_create
> mode = self.resource.mode
> File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
> line 148, in __init__
> self.env.run()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 149, in run
> self.run_action(resource, action)
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 115, in run_action
> provider_action()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
> line 96, in action_create
> content = self._get_content()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
> line 136, in _get_content
> return content()
> File "/usr/lib/python2.6/site-packages/resource_management/core/source.py",
> line 47, in __call__
> return self.get_content()
> File "/usr/lib/python2.6/site-packages/resource_management/core/source.py",
> line 126, in get_content
> rendered = self.template.render(self.context)
> File "/usr/lib/python2.6/site-packages/jinja2/environment.py", line 891, in
> render
> return self.environment.handle_exception(exc_info, True)
> File "<template>", line 2, in top-level template code
> File "/usr/lib/python2.6/site-packages/jinja2/filters.py", line 176, in
> do_dictsort
> return sorted(value.items(), key=sort_func)
> AttributeError: 'unicode' object has no attribute 'items'
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)