void allocateTask(TezTaskAttemptID task, String[] hosts, Priority priority, Object clientCookie) {
      ts.allocateTask(task, resource, hosts, null, priority, null, clientCookie);
    }
@param timeoutMs
@return false if the time elapsed
@throws InterruptedException
llap-tez/src/test/org/apache/hadoop/hive/llap/tezplugins/TestLlapTaskSchedulerService.java