Ejemplo n.º 1
0
 def register_slaves(self, slaves=None):
     if not slaves:  # FIXME hack-around until transition to layers is complete
         slaves = helpers.all_ready_units('nodemanager')
         slaves = [data['hostname'] for slave, data in slaves]
     self.hadoop_base.register_slaves(slaves)
     if utils.jps('ResourceManager'):
         self.hadoop_base.run('mapred', 'bin/yarn', 'rmadmin', '-refreshNodes')
Ejemplo n.º 2
0
 def register_slaves(self, slaves=None):
     if not slaves:  # FIXME hack-around until transition to layers is complete
         slaves = helpers.all_ready_units('datanode')
         slaves = [data['hostname'] for slave, data in slaves]
     self.hadoop_base.register_slaves(slaves)
     if utils.jps('NameNode'):
         self.hadoop_base.run('hdfs', 'bin/hdfs', 'dfsadmin', '-refreshNodes')