title: Control the number of executors when running sql in spark thrift server
body: <p>I have a spark thrift server,and users can submit spark sql to this server.</p>
  
  <p>I would like I can control the number of executors that will be used to run user's sql.That is, I don't want executors will be given as many as possible(later submitted sql may have to wait)</p>
  
  <p>I would ask whether this could be possible.</p>