You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Attila Magyar (JIRA)" <ji...@apache.org> on 2017/08/25 09:20:00 UTC
[jira] [Created] (AMBARI-21812) installing mpack with .tgz
extension fails with global name 'path' is not defined
Attila Magyar created AMBARI-21812:
--------------------------------------
Summary: installing mpack with .tgz extension fails with global name 'path' is not defined
Key: AMBARI-21812
URL: https://issues.apache.org/jira/browse/AMBARI-21812
Project: Ambari
Issue Type: Bug
Components: ambari-agent
Affects Versions: 2.4.0
Reporter: Attila Magyar
Assignee: Attila Magyar
Fix For: 3.0.0
{code}
ambari-server install-mpack --mpack=/path/to/mympack.tgz --verbose
{code}
{code}
Traceback (most recent call last):
File "/usr/sbin/ambari-server.py", line 754, in <module>
mainBody()
File "/usr/sbin/ambari-server.py", line 725, in mainBody
main(options, args, parser)
File "/usr/sbin/ambari-server.py", line 678, in main
action_obj.execute()
File "/usr/sbin/ambari-server.py", line 69, in execute
self.fn(*self.args, **self.kwargs)
File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 764, in install_mpack
(mpack_metadata, mpack_name, mpack_version, mpack_staging_dir, mpack_archive_path) = _install_mpack(options, replay_mode)
File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 620, in _install_mpack
tmp_root_dir = expand_mpack(tmp_archive_path)
File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 139, in expand_mpack
archive_root_dir = get_archive_root_dir(archive_path)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/tar_archive.py", line 70, in get_archive_root_dir
if archive.endswith('.tar.gz') or path.endswith('.tgz'):
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)