You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Dmitry Lysnichenko (JIRA)" <ji...@apache.org> on 2014/10/23 17:40:33 UTC

[jira] [Created] (AMBARI-7925) Namenode can not leave safe mode on hdp-2.2 stack

Dmitry Lysnichenko created AMBARI-7925:
------------------------------------------

             Summary: Namenode can not leave safe mode on hdp-2.2 stack
                 Key: AMBARI-7925
                 URL: https://issues.apache.org/jira/browse/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/script.py", line 122, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HDFS/package/scripts/namenode.py", line 46, in start
    namenode(action="start")
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HDFS/package/scripts/hdfs_namenode.py", 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/base.py", line 148, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 149, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 115, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", 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/10.77.64.159 to 09f.vm:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)