You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2015/10/05 13:00:27 UTC
Review Request 38995: After hdp-select failure Ambari won't retry
resulting in components failures with strange output
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38995/
-----------------------------------------------------------
Review request for Ambari and Vitalyi Brodetskyi.
Bugs: AMBARI-13309
https://issues.apache.org/jira/browse/AMBARI-13309
Repository: ambari
Description
-------
STR:
1\. I had hdp-select failed due to env issue
resource_management.core.exceptions.Fail: Execution of 'ambari-sudo.sh -H -E touch /var/lib/ambari-agent/data/hdp-select-set-all.performed ; ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.2 | tail -1`' returned 1. Traceback (most recent call last):
File "/usr/bin/hdp-select", line 363, in ?
setPackages(pkgs, args[2], options.rpm_mode)
File "/usr/bin/hdp-select", line 256, in setPackages
os.symlink(target + "/" + leaves[pkg], linkname)
OSError: [Errno 17] File exists
2\. I went and fixed the issue with my env
3\. But Ambari didn't try again to run hdp-select again and attempt to start
all the components, most of them failed with different strange error messages,
which would be really hard to understand for a user.
Diffs
-----
ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py 8c53a4b
ambari-server/src/test/python/stacks/2.0.6/hooks/after-INSTALL/test_after_install.py 5d5926b
Diff: https://reviews.apache.org/r/38995/diff/
Testing
-------
mvn clean test
Thanks,
Andrew Onischuk
Re: Review Request 38995: After hdp-select failure Ambari won't retry
resulting in components failures with strange output
Posted by Vitalyi Brodetskyi <vb...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38995/#review101465
-----------------------------------------------------------
Ship it!
Ship It!
- Vitalyi Brodetskyi
On Жов. 5, 2015, 11:07 до полудня, Andrew Onischuk wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38995/
> -----------------------------------------------------------
>
> (Updated Жов. 5, 2015, 11:07 до полудня)
>
>
> Review request for Ambari and Vitalyi Brodetskyi.
>
>
> Bugs: AMBARI-13309
> https://issues.apache.org/jira/browse/AMBARI-13309
>
>
> Repository: ambari
>
>
> Description
> -------
>
> STR:
> 1\. I had hdp-select failed due to env issue
>
>
>
> resource_management.core.exceptions.Fail: Execution of 'ambari-sudo.sh -H -E touch /var/lib/ambari-agent/data/hdp-select-set-all.performed ; ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.2 | tail -1`' returned 1. Traceback (most recent call last):
> File "/usr/bin/hdp-select", line 363, in ?
> setPackages(pkgs, args[2], options.rpm_mode)
> File "/usr/bin/hdp-select", line 256, in setPackages
> os.symlink(target + "/" + leaves[pkg], linkname)
> OSError: [Errno 17] File exists
>
>
> 2\. I went and fixed the issue with my env
> 3\. But Ambari didn't try again to run hdp-select again and attempt to start
> all the components, most of them failed with different strange error messages,
> which would be really hard to understand for a user.
>
>
> Diffs
> -----
>
> ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py 8c53a4b
> ambari-server/src/test/python/stacks/2.0.6/hooks/after-INSTALL/test_after_install.py 5d5926b
>
> Diff: https://reviews.apache.org/r/38995/diff/
>
>
> Testing
> -------
>
> mvn clean test
>
>
> Thanks,
>
> Andrew Onischuk
>
>
Re: Review Request 38995: After hdp-select failure Ambari won't retry
resulting in components failures with strange output
Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38995/
-----------------------------------------------------------
(Updated Oct. 5, 2015, 11:07 a.m.)
Review request for Ambari and Vitalyi Brodetskyi.
Bugs: AMBARI-13309
https://issues.apache.org/jira/browse/AMBARI-13309
Repository: ambari
Description
-------
STR:
1\. I had hdp-select failed due to env issue
resource_management.core.exceptions.Fail: Execution of 'ambari-sudo.sh -H -E touch /var/lib/ambari-agent/data/hdp-select-set-all.performed ; ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.2 | tail -1`' returned 1. Traceback (most recent call last):
File "/usr/bin/hdp-select", line 363, in ?
setPackages(pkgs, args[2], options.rpm_mode)
File "/usr/bin/hdp-select", line 256, in setPackages
os.symlink(target + "/" + leaves[pkg], linkname)
OSError: [Errno 17] File exists
2\. I went and fixed the issue with my env
3\. But Ambari didn't try again to run hdp-select again and attempt to start
all the components, most of them failed with different strange error messages,
which would be really hard to understand for a user.
Diffs (updated)
-----
ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py 8c53a4b
ambari-server/src/test/python/stacks/2.0.6/hooks/after-INSTALL/test_after_install.py 5d5926b
Diff: https://reviews.apache.org/r/38995/diff/
Testing
-------
mvn clean test
Thanks,
Andrew Onischuk