You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Jayush Luniya (JIRA)" <ji...@apache.org> on 2015/09/19 02:27:05 UTC

[jira] [Commented] (AMBARI-13019) Empty package folders on ambari-server causes corresponding component restart to fail

    [ https://issues.apache.org/jira/browse/AMBARI-13019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14876737#comment-14876737 ] 

Jayush Luniya commented on AMBARI-13019:
----------------------------------------

Trunk:
commit 1065bc5155629ce5951c370c5cc74ad849ae222d
Author: Jayush Luniya <jl...@hortonworks.com>
Date:   Fri Sep 18 17:25:38 2015 -0700

    AMBARI-13019: Empty package folders on ambari-server causes corresponding component restart to fail (Nahappan Somasundaram via jluniya)

> Empty package folders on ambari-server causes corresponding component restart to fail
> -------------------------------------------------------------------------------------
>
>                 Key: AMBARI-13019
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13019
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.2.0
>            Reporter: Nahappan Somasundaram
>            Assignee: Nahappan Somasundaram
>             Fix For: 2.2.0
>
>
> When the agent executes a command say status/start/stop command, ambari-server provides the service_package_folder to use as a parameter 
> Repro Steps:
> 1. mkdir /var/lib/ambari-server/resouces/stacks/HDP/2.2/services/HDFS/package
> 2. ambari-server restart
> 3. Notice HDFS components report Heartbeat Lost and Restart HDFS fail.
> 4. This is because the sservice_package_folder is set to the empty folder. 
> ERROR 2015-08-28 20:35:59,383 CustomServiceOrchestrator.py:218 - Caught an exception while executing custom service command: <class 'ambari_agent.AgentException.AgentException'>: 'Script /var/lib/ambari-agent/cache/stacks/HDP/2.2/services/HDFS/package/scripts/namenode.py does not exist'; 'Script /var/lib/ambari-agent/cache/stacks/HDP/2.2/services/HDFS/package/scripts/namenode.py does not exist'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/ambari_agent/CustomServiceOrchestrator.py", line 151, in runCommand
>     script_path = self.resolve_script_path(base_dir, script)
>   File "/usr/lib/python2.6/site-packages/ambari_agent/CustomServiceOrchestrator.py", line 288, in resolve_script_path
>     raise AgentException(message)
> So even if we disable the stack from replicating an empty folder, the ambari-server would still pass the path as empty folder. 
> We should also look at ignoring empty package folders while building the Stack Inheritance in Ambari Server
> Refer code in: ambari/ambari-server/src/main/java/org/apache/ambari/server/stack



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