[
https://issues.apache.org/jira/browse/AMBARI-17332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15341473#comment-15341473
]
Andrew Onischuk commented on AMBARI-17332:
------------------------------------------
{noformat}
[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0
approved: 148 licence.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Views ...................................... SUCCESS [2.384s]
[INFO] Ambari Metrics Common ............................. SUCCESS [1.077s]
[INFO] Ambari Server ..................................... SUCCESS [1:02.589s]
[INFO] Ambari Agent ...................................... SUCCESS [13.755s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:20.624s
[INFO] Finished at: Tue Jun 21 12:57:07 EEST 2016
[INFO] Final Memory: 70M/1192M
[INFO] ------------------------------------------------------------------------
{noformat}
> Downloading sqoop client files throws error
> -------------------------------------------
>
> Key: AMBARI-17332
> URL: https://issues.apache.org/jira/browse/AMBARI-17332
> Project: Ambari
> Issue Type: Bug
> Reporter: Andrew Onischuk
> Assignee: Andrew Onischuk
> Fix For: 2.4.0
>
> Attachments: AMBARI-17332.patch
>
>
> Downloading sqoop client files from Service Actions menu throws the below
> error
>
>
>
> status: 500,
> message: "org.apache.ambari.server.controller.spi.SystemException:
> Execution of "ambari-python-wrap
> /var/lib/ambari-server/resources/common-services/SQOOP/1.4.4.2.0/package/scripts/sqoop_client.py
> generate_configs /var/lib/ambari-server/data/tmp/SQOOP-configuration.json
> /var/lib/ambari-server/resources/common-services/SQOOP/1.4.4.2.0/package
> /var/lib/ambari-server/data/tmp/structured-out.json INFO
> /var/lib/ambari-server/data/tmp" returned 1. java.lang.Throwable: 2016-06-21
> 07:14:04,201 - Directory['/var/lib/ambari-server/data/tmp']
> {'create_parents': True} 2016-06-21 07:14:04,203 -
> XmlConfig['squoop-site.xml'] {'conf_dir':
> '/var/lib/ambari-server/data/tmp/tmpjWQnzj', 'mode': 0644,
> 'configuration_attributes': [EMPTY], 'configurations': [EMPTY]} 2016-06-21
> 07:14:04,213 - Generating config:
> /var/lib/ambari-server/data/tmp/tmpjWQnzj/squoop-site.xml 2016-06-21
> 07:14:04,213 -
> File['/var/lib/ambari-server/data/tmp/tmpjWQnzj/squoop-site.xml'] {'owner':
> None, 'content': InlineTemplate(...), 'group': None, 'mode': 0644,
> 'encoding': 'UTF-8'} 2016-06-21 07:14:04,219 -
> Directory['/var/lib/ambari-server/data/tmp/tmpjWQnzj'] {'action': ['delete']}
> 2016-06-21 07:14:04,219 - Removing directory
> Directory['/var/lib/ambari-server/data/tmp/tmpjWQnzj'] and all its content
> Traceback (most recent call last): File
> "/var/lib/ambari-server/resources/common-services/SQOOP/1.4.4.2.0/package/scripts/sqoop_client.py",
> line 66, in <module> SqoopClient().execute() File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 257, in execute method(env) File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 781, in generate_configs
> **self.generate_configs_get_xml_file_content(filename, dict) 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/libraries/providers/xml_config.py",
> line 66, in action_create encoding = self.resource.encoding 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 123, in action_create content = self._get_content() File
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
> line 160, in _get_content return content() File
> "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line
> 51, in __call__ return self.get_content() File
> "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line
> 142, in get_content rendered = self.template.render(self.context) File
> "/usr/lib/python2.6/site-packages/ambari_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/ambari_jinja2/filters.py", line 176, in
> do_dictsort return sorted(value.items(), key=sort_func) File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py",
> line 73, in __getattr__ raise Fail("Configuration parameter '" + self.name +
> "' was not found in configurations dictionary!")
> resource_management.core.exceptions.Fail: Configuration parameter
> 'squoop-site' was not found in configurations dictionary! "
> }
>
> Could you please help take a look.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)