}
public boolean submitRequest(TSchedulingRequest request) {
try {
Client client = clients.take();
client.submitJob(request);
clients.put(client);
} catch (InterruptedException e) {
LOG.fatal(e);
} catch (TException e) {
LOG.error("Thrift exception when submitting job: " + e.getMessage());