def __init__(self): super(VersionHandler, self).__init__() self._version = version self._required_services = [ yarn.YARNv251(), maprfs.MapRFS(), mng.Management(), oozie.Oozie(), ] self._services = [ yarn.YARNv251(), maprfs.MapRFS(), mng.Management(), oozie.OozieV401(), oozie.OozieV410(), hive.HiveV013(), impala.ImpalaV141(), flume.Flume(), hbase.HBaseV0987(), hbase.HBaseV0989(), hue.HueV360(), hue.HueV370(), httpfs.HttpFS(), mahout.MahoutV09(), pig.PigV013(), pig.PigV014(), sqoop2.Sqoop2(), swift.Swift(), drill.DrillV07(), drill.DrillV08(), drill.DrillV09(), drill.DrillV12(), ]
def __init__(self): super(VersionHandler, self).__init__() self._version = version self._required_services = [ mapreduce.MapReduce(), maprfs.MapRFS(), management.Management(), oozie.Oozie(), ] self._services = [ mapreduce.MapReduce(), maprfs.MapRFS(), management.Management(), oozie.OozieV401(), hive.HiveV013(), hbase.HBaseV094(), hbase.HBaseV0987(), httpfs.HttpFS(), mahout.Mahout(), pig.PigV013(), pig.PigV014(), swift.Swift(), flume.Flume(), drill.DrillV07(), drill.DrillV08(), drill.DrillV09(), sqoop2.Sqoop2(), hue.HueV360(), ]
def test_is_present(self): cluster_context = self._get_context() self.assertTrue(cluster_context.is_present(oozie.Oozie())) self.assertFalse(cluster_context.is_present(oozie.OozieV401())) self.assertTrue(cluster_context.is_present(oozie.OozieV420()))