You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "xiaosonglin (JIRA)" <ji...@apache.org> on 2018/12/04 13:30:00 UTC

[jira] [Created] (AMBARI-24993) When the custom service does not have the configure directory, all components of the service fail to start.

xiaosonglin created AMBARI-24993:
------------------------------------

             Summary: When the custom service does not have the configure directory, all components of the service fail to start.
                 Key: AMBARI-24993
                 URL: https://issues.apache.org/jira/browse/AMBARI-24993
             Project: Ambari
          Issue Type: Improvement
          Components: ambari-server
    Affects Versions: 2.7.0
         Environment: The test service DHDFS has not configuration dir ,and i use api execute install && start component

!image-2018-12-04-21-21-24-663.png!
            Reporter: xiaosonglin
         Attachments: image-2018-12-04-21-21-24-663.png

When the custom service does not have the configure directory, all components of the service fail to start.

error infoļ¼š

ERROR 2018-12-04 17:16:02,997 CustomServiceOrchestrator.py:484 - Caught an exception while executing custom service command: <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'startswith'; 'NoneType' object has no attribute 'startswith'
Traceback (most recent call last):
 File "/usr/lib/ambari-agent/lib/ambari_agent/CustomServiceOrchestrator.py", line 388, in runCommand
 base_dir = self.file_cache.get_service_base_dir(command, server_url_prefix)
 File "/usr/lib/ambari-agent/lib/ambari_agent/FileCache.py", line 86, in get_service_base_dir
 server_url_prefix)
 File "/usr/lib/ambari-agent/lib/ambari_agent/FileCache.py", line 152, in provide_directory
 full_path = os.path.join(cache_path, subdirectory)
 File "/usr/lib64/python2.7/posixpath.py", line 75, in join
 if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'
ERROR 2018-12-04 17:16:02,997 ActionQueue.py:221 - Exception while processing EXECUTION_COMMAND command
Traceback (most recent call last):
 File "/usr/lib/ambari-agent/lib/ambari_agent/ActionQueue.py", line 214, in process_command
 self.execute_command(command)
 File "/usr/lib/ambari-agent/lib/ambari_agent/ActionQueue.py", line 302, in execute_command
 retry=numAttempts > 1)
 File "/usr/lib/ambari-agent/lib/ambari_agent/CustomServiceOrchestrator.py", line 495, in runCommand

self.conditionally_remove_command_file(json_path, ret)

File "/usr/lib/ambari-agent/lib/ambari_agent/CustomServiceOrchestrator.py", line 725, in conditionally_remove_command_file
 if os.path.exists(command_json_path):
 File "/usr/lib64/python2.7/genericpath.py", line 18, in exists
 os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)