def is_ready(self):
     if not super(HadoopPlugin, self).is_ready():
         return False
     data = self.filtered_data().values()[0]
     hdfs_ready = utils.strtobool(data.get('hdfs-ready', 'False'))
     yarn_ready = utils.strtobool(data.get('yarn-ready', 'False'))
     if 'hdfs-ready' in self.required_keys and not hdfs_ready:
         return False
     if 'yarn-ready' in self.required_keys and not yarn_ready:
         return False
     return True
 def is_ready(self):
     if not super(HadoopPlugin, self).is_ready():
         return False
     data = self.filtered_data().values()[0]
     hdfs_ready = utils.strtobool(data.get('hdfs-ready', 'False'))
     yarn_ready = utils.strtobool(data.get('yarn-ready', 'False'))
     if 'hdfs-ready' in self.required_keys and not hdfs_ready:
         return False
     if 'yarn-ready' in self.required_keys and not yarn_ready:
         return False
     return True
 def has_slave(self):
     """
     Check if the ResourceManager has any NodeManager slaves registered.
     """
     if not super(ResourceManager, self).is_ready():
         return False
     data = self.filtered_data().values()[0]
     return utils.strtobool(data['has_slave'])
 def has_slave(self):
     """
     Check if the ResourceManager has any NodeManager slaves registered.
     """
     if not super(ResourceManager, self).is_ready():
         return False
     data = self.filtered_data().values()[0]
     return utils.strtobool(data['has_slave'])
 def has_slave(self):
     """
     Check if the NameNode has any DataNode slaves registered. This reflects
     if HDFS is ready without having to wait for utils.wait_for_hdfs.
     """
     if not super(NameNode, self).is_ready():
         return False
     data = self.filtered_data().values()[0]
     return utils.strtobool(data['has_slave'])
 def has_slave(self):
     """
     Check if the NameNode has any DataNode slaves registered. This reflects
     if HDFS is ready without having to wait for utils.wait_for_hdfs.
     """
     if not super(NameNode, self).is_ready():
         return False
     data = self.filtered_data().values()[0]
     return utils.strtobool(data['has_slave'])