MINOR: KafkaService should print node hostname on failure
Author: Colin P. Mccabe
Reviewers: Apurva Mehta Ismael Juma
Closes from cmccabe/kafka_service_print_node_hostname_on_failure
@@ -239,7 +239,7 @@ class KafkaService(KafkaPathResolverMixin, JmxMixin, Service):
self.start_jmx_tool(self.idx(node), node)
if len(self.pids(node)) == 0:
- raise Exception("No process ids recorded on node %s" % str(node))
+ raise Exception("No process ids recorded on node %s" % node.account.hostname)
def pids(self, node):
"""Return process ids associated with running processes on the given node."""
