Exemple #1
0
 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(),
     ]
Exemple #2
0
 def __init__(self):
     super(VersionHandler, self).__init__()
     self._version = version
     self._required_services = [
         yarn.YARNv270(),
         maprfs.MapRFS(),
         mng.Management(),
         oozie.Oozie(),
     ]
     self._services = [
         hive.HiveV013(),
         hive.HiveV12(),
         impala.ImpalaV220(),
         pig.PigV014(),
         pig.PigV015(),
         flume.FlumeV16(),
         flume.FlumeV15(),
         sqoop2.Sqoop2(),
         mahout.MahoutV010(),
         oozie.OozieV410(),
         oozie.OozieV420(),
         hue.HueV381(),
         hue.HueV390(),
         hbase.HBaseV09812(),
         drill.DrillV11(),
         drill.DrillV12(),
         drill.DrillV14(),
         yarn.YARNv270(),
         maprfs.MapRFS(),
         mng.Management(),
         httpfs.HttpFS(),
         swift.Swift(),
         spark.SparkOnYarn()
     ]
Exemple #3
0
    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.OozieV410()))