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/05/15 12:50:06 UTC
Review Request 34265: Some upgrade paths are not using su with correct
parameters
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/34265/
-----------------------------------------------------------
Review request for Ambari and Vitalyi Brodetskyi.
Bugs: AMBARI-11163
https://issues.apache.org/jira/browse/AMBARI-11163
Repository: ambari
Description
-------
RU fails in the initial stages as it cannot determine the safemode status of
the NameNode. Based on the investigation, the hdfs user for the customer is a
nologin no shell user. Thus the call `su - hdfs -c 'hdfs dfsadmin -safemode
get` fails with the error "Account is currently not available". _The message
is approximated._
Error:
2015-05-14 18:17:33,497 - call['su - hdfs -c 'hdfs dfsadmin -safemode get''] {}
2015-05-14 18:17:33,572 - Command: su - hdfs -c 'hdfs dfsadmin -safemode get'
Code: 1.
2015-05-14 18:17:33,572 - Error while executing command 'prepare_rolling_upgrade':
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 67, in prepare_rolling_upgrade
namenode_upgrade.prepare_rolling_upgrade()
File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py", line 100, in prepare_rolling_upgrade
raise Fail("Could not transition to safemode state %s. Please check logs to make sure namenode is up." % str(SafeMode.OFF))
Fail: Could not transition to safemode state OFF. Please check logs to make sure namenode is up.
2015-05-14 18:17:33,572 - Error while executing command 'prepare_rolling_upgrade':
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 67, in prepare_rolling_upgrade
namenode_upgrade.prepare_rolling_upgrade()
File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py", line 100, in prepare_rolling_upgrade
raise Fail("Could not transition to safemode state %s. Please check logs to make sure namenode is up." % str(SafeMode.OFF))
Fail: Could not transition to safemode state OFF. Please check logs to make sure namenode is up.
2015-05-14 18:17:33,617 - Error while executing command 'actionexecute':
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
method(env)
File "/var/lib/ambari-agent/cache/custom_actions/scripts/ru_execute_tasks.py", line 148, in actionexecute
raise Fail(out)
Fail: 2015-05-14 18:17:33,486 - Performing a(n) upgrade of HDFS
2015-05-14 18:17:33,486 - Prepare to transition into safemode state OFF
2015-05-14 18:17:33,497 - call['su - hdfs -c 'hdfs dfsadmin -safemode get''] {}
2015-05-14 18:17:33,572 - Command: su - hdfs -c 'hdfs dfsadmin -safemode get'
Code: 1.
2015-05-14 18:17:33,572 - Error while executing command 'prepare_rolling_upgrade':
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 67, in prepare_rolling_upgrade
namenode_upgrade.prepare_rolling_upgrade()
File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py", line 100, in prepare_rolling_upgrade
raise Fail("Could not transition to safemode state %s. Please check logs to make sure namenode is up." % str(SafeMode.OFF))
Fail: Could not transition to safemode state OFF. Please check logs to make sure namenode is up.
2015-05-14 18:17:33,572 - Error while executing command 'prepare_rolling_upgrade':
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 67, in prepare_rolling_upgrade
namenode_upgrade.prepare_rolling_upgrade()
File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py", line 100, in prepare_rolling_upgrade
raise Fail("Could not transition to safemode state %s. Please check logs to make sure namenode is up." % str(SafeMode.OFF))
Fail: Could not transition to safemode state OFF. Please check logs to make sure namenode is up.
Diffs
-----
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py ddd81fc
Diff: https://reviews.apache.org/r/34265/diff/
Testing
-------
mvn clean test
Thanks,
Andrew Onischuk
Re: Review Request 34265: Some upgrade paths are not using su with
correct parameters
Posted by Vitalyi Brodetskyi <vb...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/34265/#review83916
-----------------------------------------------------------
Ship it!
Ship It!
- Vitalyi Brodetskyi
On Травень 15, 2015, 10:50 до полудня, Andrew Onischuk wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/34265/
> -----------------------------------------------------------
>
> (Updated Травень 15, 2015, 10:50 до полудня)
>
>
> Review request for Ambari and Vitalyi Brodetskyi.
>
>
> Bugs: AMBARI-11163
> https://issues.apache.org/jira/browse/AMBARI-11163
>
>
> Repository: ambari
>
>
> Description
> -------
>
> RU fails in the initial stages as it cannot determine the safemode status of
> the NameNode. Based on the investigation, the hdfs user for the customer is a
> nologin no shell user. Thus the call `su - hdfs -c 'hdfs dfsadmin -safemode
> get` fails with the error "Account is currently not available". _The message
> is approximated._
>
> Error:
>
>
>
> 2015-05-14 18:17:33,497 - call['su - hdfs -c 'hdfs dfsadmin -safemode get''] {}
> 2015-05-14 18:17:33,572 - Command: su - hdfs -c 'hdfs dfsadmin -safemode get'
> Code: 1.
> 2015-05-14 18:17:33,572 - Error while executing command 'prepare_rolling_upgrade':
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
> method(env)
> File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 67, in prepare_rolling_upgrade
> namenode_upgrade.prepare_rolling_upgrade()
> File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py", line 100, in prepare_rolling_upgrade
> raise Fail("Could not transition to safemode state %s. Please check logs to make sure namenode is up." % str(SafeMode.OFF))
> Fail: Could not transition to safemode state OFF. Please check logs to make sure namenode is up.
> 2015-05-14 18:17:33,572 - Error while executing command 'prepare_rolling_upgrade':
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
> method(env)
> File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 67, in prepare_rolling_upgrade
> namenode_upgrade.prepare_rolling_upgrade()
> File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py", line 100, in prepare_rolling_upgrade
> raise Fail("Could not transition to safemode state %s. Please check logs to make sure namenode is up." % str(SafeMode.OFF))
> Fail: Could not transition to safemode state OFF. Please check logs to make sure namenode is up.
> 2015-05-14 18:17:33,617 - Error while executing command 'actionexecute':
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
> method(env)
> File "/var/lib/ambari-agent/cache/custom_actions/scripts/ru_execute_tasks.py", line 148, in actionexecute
> raise Fail(out)
> Fail: 2015-05-14 18:17:33,486 - Performing a(n) upgrade of HDFS
> 2015-05-14 18:17:33,486 - Prepare to transition into safemode state OFF
> 2015-05-14 18:17:33,497 - call['su - hdfs -c 'hdfs dfsadmin -safemode get''] {}
> 2015-05-14 18:17:33,572 - Command: su - hdfs -c 'hdfs dfsadmin -safemode get'
> Code: 1.
> 2015-05-14 18:17:33,572 - Error while executing command 'prepare_rolling_upgrade':
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
> method(env)
> File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 67, in prepare_rolling_upgrade
> namenode_upgrade.prepare_rolling_upgrade()
> File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py", line 100, in prepare_rolling_upgrade
> raise Fail("Could not transition to safemode state %s. Please check logs to make sure namenode is up." % str(SafeMode.OFF))
> Fail: Could not transition to safemode state OFF. Please check logs to make sure namenode is up.
> 2015-05-14 18:17:33,572 - Error while executing command 'prepare_rolling_upgrade':
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
> method(env)
> File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 67, in prepare_rolling_upgrade
> namenode_upgrade.prepare_rolling_upgrade()
> File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py", line 100, in prepare_rolling_upgrade
> raise Fail("Could not transition to safemode state %s. Please check logs to make sure namenode is up." % str(SafeMode.OFF))
> Fail: Could not transition to safemode state OFF. Please check logs to make sure namenode is up.
>
>
> Diffs
> -----
>
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode_upgrade.py ddd81fc
>
> Diff: https://reviews.apache.org/r/34265/diff/
>
>
> Testing
> -------
>
> mvn clean test
>
>
> Thanks,
>
> Andrew Onischuk
>
>