apache/spark — pull request #2675 by liancheng (2014-10-06 14:22:23+00:00)
Title: [3809][SQL] Fixes test suites in hive-thriftserver

As @scwf pointed out, `HiveThriftServer2Suite` isn't effective anymore after the Thrift server was made a daemon. On the other hand, these test suites were known flaky, PR #2214 tried to fix them but failed because of unknown Jenkins build error. This PR is another try to fix both issue.

In this PR, instead of watching `start-thriftserver.sh` output, the test code start a `tail` process to watch the log file. A `Thread.sleep` has to be introduced because the `kill` command used in `stop-thriftserver.sh` is not synchronous.