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

Hudson commented on AMBARI-13019:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #3469 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/3469/])
AMBARI-13019: Empty package folders on ambari-server causes corresponding 
component restart to fail (Nahappan Somasundaram via jluniya) (jluniya: 
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=1065bc5155629ce5951c370c5cc74ad849ae222d)
* ambari-server/src/test/python/TestResourceFilesKeeper.py
* ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py
* 
ambari-server/src/main/java/org/apache/ambari/server/stack/StackServiceDirectory.java


> 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)

Reply via email to