ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <>
Subject [jira] [Created] (AMBARI-7925) Namenode can not leave safe mode on hdp-2.2 stack
Date Thu, 23 Oct 2014 15:40:33 GMT
Dmitry Lysnichenko created AMBARI-7925:

             Summary: Namenode can not leave safe mode on hdp-2.2 stack
                 Key: AMBARI-7925
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 1.7.0
         Environment: branch-1.7.0 122dae7
stack HDP-2.2
            Reporter: Dmitry Lysnichenko
            Assignee: Dmitry Lysnichenko
             Fix For: 1.7.0

Initial analysis:
First namenode start attempt failed for me. Probably, that caused NN to enter safe mode. After
fixing perm gen memory size value, I've tried to start NN again. Our stack scripts seem to
move NN out of safe mode on start if needed. But on HDP-2.2 stack, command for doing this
is deprecated and fails with a non-zero exit code.
2014-10-21 16:33:25,973 - Error while executing command 'start':
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/",
line 122, in execute
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HDFS/package/scripts/",
line 46, in start
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HDFS/package/scripts/",
line 60, in namenode
    only_if=dfs_check_nn_status_cmd #skip when HA not active
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 148, in __init__
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 149,
in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 115,
in run_action
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/", line
237, in action_run
    raise ex
Fail: Execution of 'su -s /bin/bash - hdfs -c 'export PATH=$PATH:/usr/hdp/current/hadoop-client/bin
; hadoop --config /etc/hadoop/conf dfsadmin -safemode get' | grep 'Safe mode is OFF'' returned
1. DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

safemode: Call From 09f.vm/ to 09f.vm:8020 failed on connection exception:
Connection refused; For more details see:

This message was sent by Atlassian JIRA

View raw message