ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <>
Subject [jira] [Commented] (AMBARI-7925) Namenode can not leave safe mode on hdp-2.2 stack
Date Thu, 23 Oct 2014 16:36:33 GMT


Hadoop QA commented on AMBARI-7925:

{color:green}+1 overall{color}.  Here are the results of testing the latest attachment
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 1 new or modified
test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of
javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number
of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in ambari-server.

Test results:
Console output:

This message is automatically generated.

> Namenode can not leave safe mode on hdp-2.2 stack
> -------------------------------------------------
>                 Key: AMBARI-7925
>                 URL:
>             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
>         Attachments: AMBARI-7925.patch
> 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
>     method(env)
>   File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HDFS/package/scripts/",
line 46, in start
>     namenode(action="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
>     provider_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