def provide(self, remote_service, all_ready):
     data = super(NameNode, self).provide(remote_service, all_ready)
     if all_ready and utils.wait_for_jps('NameNode', 300):
         data.update({
             'has_slave': DataNode().is_ready(),
             'port': self.port,
             'webhdfs-port': self.webhdfs_port,
         })
     return data
 def provide(self, remote_service, all_ready):
     data = super(NameNode, self).provide(remote_service, all_ready)
     if all_ready and utils.wait_for_jps('NameNode', 300):
         data.update({
             'has_slave': DataNode().is_ready(),
             'port': self.port,
             'webhdfs-port': self.webhdfs_port,
         })
     return data
 def provide(self, remote_service, all_ready):
     data = super(ResourceManager, self).provide(remote_service, all_ready)
     if all_ready and utils.wait_for_jps('ResourceManager', 300):
         data.update({
             'has_slave': NodeManager().is_ready(),
             'port': self.port,
             'historyserver-http': self.historyserver_http,
             'historyserver-ipc': self.historyserver_ipc,
         })
     return data
 def provide(self, remote_service, all_ready):
     data = super(ResourceManager, self).provide(remote_service, all_ready)
     if all_ready and utils.wait_for_jps('ResourceManager', 300):
         data.update({
             'has_slave': NodeManager().is_ready(),
             'port': self.port,
             'historyserver-http': self.historyserver_http,
             'historyserver-ipc': self.historyserver_ipc,
         })
     return data