Exemple #1
0
    def test_get_secondarynamenodes(self):
        cl = tu.create_cluster('cl1', 't1', 'vanilla', '2.6.0',
                               [self.ng_manager, self.ng_namenode,
                                self.ng_secondarynamenode])
        self.assertEqual('snn1', u.get_secondarynamenode(cl).instance_id)

        cl = tu.create_cluster('cl1', 't1', 'vanilla', '2.6.0',
                               [self.ng_manager])
        self.assertIsNone(u.get_secondarynamenode(cl))
Exemple #2
0
    def test_get_secondarynamenodes(self):
        cl = tu.create_cluster(
            'cl1', 't1', 'vanilla', '2.7.1',
            [self.ng_manager, self.ng_namenode, self.ng_secondarynamenode])
        self.assertEqual('snn1', u.get_secondarynamenode(cl).instance_id)

        cl = tu.create_cluster('cl1', 't1', 'vanilla', '2.7.1',
                               [self.ng_manager])
        self.assertIsNone(u.get_secondarynamenode(cl))
Exemple #3
0
    def start_secondarynamenode(self, cluster):
        snn = vu.get_secondarynamenode(cluster)
        if snn is None:
            return

        self._start_secondarynamenode(snn)
Exemple #4
0
def start_secondarynamenode(cluster):
    snn = vu.get_secondarynamenode(cluster)
    if snn:
        _start_secondarynamenode(snn)
Exemple #5
0
def start_secondarynamenode(cluster):
    snn = vu.get_secondarynamenode(cluster)
    if snn:
        _start_secondarynamenode(snn)