Beispiel #1
0
 def install_software(self, nodes):
     _nodes = [{'hostname': host} for host in nodes]
     url = '/cluster/%s/nodes/commands/installsoftware' % self.cluster_name
     session_id = self.rest.post(url, _nodes)['sessionID']
     return session.wait(self, session_id)
Beispiel #2
0
    def format(self, force=False):
        url = ('/cluster/%s/services/hdfs/commands/hdfsformat/%s'
               % (self.cluster_name, 'force' if force else 'noforce'))

        session_id = self.rest.post(url)['sessionID']
        return session.wait(self, session_id)