apache/spark — pull request #2671 by scwf (2014-10-06 10:24:41+00:00)
Title: [SPARK-3809][SQL]fix HiveThriftServer2Suite to make it work correctly

Currently HiveThriftServer2Suite is a fake one, actually HiveThriftServer not even started there. Issues here:
1 Thriftserver not started. Testing will get this error ---
ERROR HiveThriftServer2Suite: Failed to start Hive Thrift server within 30 seconds
java.util.concurrent.TimeoutException: Futures timed out after [30 seconds]
2 Thriftserver not stoped. After test finished the process of thriftserver did not exit.

This patch fix this problems as follows:
1 Since thriftserver started as a daemon in https://github.com/apache/spark/pull/2509, output of the```start-thriftserver.sh``` has be redirect to a log file such as ```spark-kf-org.apache.spark.sql.hive.thriftserver.HiveThriftServer2-1-kf.out```, so to see whether this file contain "ThriftBinaryCLIService listening on" ` to assert server started successfully

2 Start server in ```beforeAll```

3 stop server in ```afterAll```