Member since
12-19-2018
3
Posts
0
Kudos Received
0
Solutions
12-21-2018
01:35 PM
I can confirm that this solution worked for me. Thanks!
... View more
12-20-2018
01:35 PM
I've tried the procedure on this page: https://community.hortonworks.com/articles/202904/how-to-remove-all-previous-version-hdp-directories.html?childToView=230847#comment-230847 on a freshly
upgraded HDP setup (version 3.0.1). But when I launch the request it
immediately errors out with this in the output: stdout:
2018-12-19 10:38:04,388 - call[('ambari-python-wrap', u'/usr/bin/hdp-select', 'versions')] {}<br> 2018-12-19 10:38:04,416 - call returned (0, '2.6.2.14-5\n2.6.5.0-292\n3.0.1.0-187')<br> 2018-12-19 10:38:04,416 - available versions: ['2.6.2.14-5', '2.6.5.0-292', '3.0.1.0-187']<br> 2018-12-19 10:38:04,417 - version 2.6.2.14-5 added to remove<br><br> Command failed after 1 tries stderr:
Traceback (most recent call last):<br> File "/var/lib/ambari-agent/cache/custom_actions/scripts/remove_previous_stacks.py", line 119, in <module><br> RemovePreviousStacks().execute()<br> File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 351, in execute<br> method(env)<br> File "/var/lib/ambari-agent/cache/custom_actions/scripts/remove_previous_stacks.py", line 49, in actionexecute<br> self.remove_stack_version(structured_output, low_version)<br> File "/var/lib/ambari-agent/cache/custom_actions/scripts/remove_previous_stacks.py", line 54, in remove_stack_version<br> packages_to_remove = self.get_packages_to_remove(version)<br> File "/var/lib/ambari-agent/cache/custom_actions/scripts/remove_previous_stacks.py", line 77, in get_packages_to_remove<br> all_installed_packages = self.pkg_provider.all_installed_packages()<br>AttributeError: 'YumManager' object has no attribute 'all_installed_packages' A quick google did not return anything usefull. But it looks like the
some of the supporting code for this is missing or we are missing a
extra library somewhere?
... View more
Labels:
- Labels:
-
Hortonworks Data Platform (HDP)
12-19-2018
01:34 PM
I've tried this procedure on a freshly upgraded HDP setup (version 3.0.1). But when I launch the request it immediately errors out with this in the output:
stdout: 2018-12-19 10:38:04,388 - call[('ambari-python-wrap', u'/usr/bin/hdp-select', 'versions')] {} 2018-12-19 10:38:04,416 - call returned (0, '2.6.2.14-5\n2.6.5.0-292\n3.0.1.0-187') 2018-12-19 10:38:04,416 - available versions: ['2.6.2.14-5', '2.6.5.0-292', '3.0.1.0-187'] 2018-12-19 10:38:04,417 - version 2.6.2.14-5 added to remove Command failed after 1 tries stderr: Traceback (most recent call last): File "/var/lib/ambari-agent/cache/custom_actions/scripts/remove_previous_stacks.py", line 119, in <module> RemovePreviousStacks().execute() File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 351, in execute method(env) File "/var/lib/ambari-agent/cache/custom_actions/scripts/remove_previous_stacks.py", line 49, in actionexecute self.remove_stack_version(structured_output, low_version) File "/var/lib/ambari-agent/cache/custom_actions/scripts/remove_previous_stacks.py", line 54, in remove_stack_version packages_to_remove = self.get_packages_to_remove(version) File "/var/lib/ambari-agent/cache/custom_actions/scripts/remove_previous_stacks.py", line 77, in get_packages_to_remove all_installed_packages = self.pkg_provider.all_installed_packages() AttributeError: 'YumManager' object has no attribute 'all_installed_packages' A quick google did not return anything usefull. But it looks like the some of the supporting code for this is missing or we are missing a extra library somewhere?
... View more