[ 
https://issues.apache.org/jira/browse/AMBARI-17115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Onischuk updated AMBARI-17115:
-------------------------------------
    Status: Patch Available  (was: Open)

> [Change log directory prefix for service FLUME] Flume service not starting 
> after changing the log directory
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-17115
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17115
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-17115.patch
>
>
> **Scenario** \- Modify log directory for FLUME (Key - Flume Log Dir)
> Expected - Service Should start successfully  
> Output - Service Failed to start (New log folder was not created )
>     
>     
>     
>     Traceback (most recent call last):
>       File 
> "/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume_handler.py",
>  line 126, in <module>
>         FlumeHandler().execute()
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 257, in execute
>         method(env)
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 681, in restart
>         self.start(env, upgrade_type=upgrade_type)
>       File 
> "/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume_handler.py",
>  line 54, in start
>         self.configure(env)
>       File 
> "/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume_handler.py",
>  line 39, in configure
>         flume(action='config')
>       File 
> "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, 
> in thunk
>         return fn(*args, **kwargs)
>       File 
> "/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume.py",
>  line 109, in flume
>         mode=0755,
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 
> 155, in __init__
>         self.env.run()
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 160, in run
>         self.run_action(resource, action)
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
> line 124, in run_action
>         provider_action()
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
>  line 189, in action_create
>         raise Fail("Applying %s failed, parent directory %s doesn't exist" % 
> (self.resource, dirname))
>     resource_management.core.exceptions.Fail: Applying 
> Directory['/grid/0/_QE-7627_/_logRMP5891_/FLUME'] failed, parent directory 
> /grid/0/_QE-7627_/_logRMP5891_ doesn't exist



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

Reply via email to