INFO 2018-09-13 18:30:15,817 ClusterCache.py:125 - Rewriting cache
ClusterTopologyCache for cluster 2
ERROR 2018-09-13 18:30:16,386 CustomServiceOrchestrator.py:456 - Caught an
exception while executing custom service command: <type
'exceptions.TypeError'>: 'NoneType' object has no attribute '__getitem__';
'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
File "/usr/lib/ambari-agent/lib/ambari_agent/CustomServiceOrchestrator.py",
line 324, in runCommand
command = self.generate_command(command_header)
File "/usr/lib/ambari-agent/lib/ambari_agent/CustomServiceOrchestrator.py",
line 504, in generate_command
command_dict = self.configuration_builder.get_configuration(cluster_id,
service_name, component_name, required_config_timestamp)
File "/usr/lib/ambari-agent/lib/ambari_agent/ConfigurationBuilder.py", line
46, in get_configuration
'agentLevelParams': {'hostname':
self.topology_cache.get_current_host_info(cluster_id)['hostName']},
TypeError: 'NoneType' object has no attribute '__getitem__'
This was found while perf testing.
However can occur under any circumstances if ambari-agent node if slow enough.
[ Full content available at: https://github.com/apache/ambari/pull/2338 ]
This message was relayed via gitbox.apache.org for [email protected]