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 (JIRA)" <ji...@apache.org> on 2015/05/15 12:50:01 UTC
[jira] [Created] (AMBARI-11163) Some upgrade paths are not using su
with correct parameters
Andrew Onischuk created AMBARI-11163:
----------------------------------------
Summary: Some upgrade paths are not using su with correct parameters
Key: AMBARI-11163
URL: https://issues.apache.org/jira/browse/AMBARI-11163
Project: Ambari
Issue Type: Bug
Reporter: Andrew Onischuk
Assignee: Andrew Onischuk
Fix For: 2.1.0
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)