Resolve sbt warnings during build Ⅱ

Author: witgo <witgo@qq.com>

Closes #1153 from witgo/expectResult and squashes the following commits:

97541d8 [witgo] merge master
ead26e7 [witgo] Resolve sbt warnings during build

(cherry picked from commit 3cd5029be709307415f911236472a685e406e763)
Signed-off-by: Reynold Xin <rxin@apache.org>
[SPARK-2391][SQL] Custom take() for LIMIT queries.

Using Spark's take can result in an entire in-memory partition to be shipped in order to retrieve a single row.

Author: Michael Armbrust <michael@databricks.com>

Closes #1318 from marmbrus/takeLimit and squashes the following commits:

77289a5 [Michael Armbrust] Update scala doc
32f0674 [Michael Armbrust] Custom take implementation for LIMIT queries.

(cherry picked from commit 5a4063645dd7bb4cd8bda890785235729804ab09)
Signed-off-by: Reynold Xin <rxin@apache.org>
[EC2] Add default history server port to ec2 script

Right now I have to open it manually

Author: Andrew Or <andrewor14@gmail.com>

Closes #1296 from andrewor14/hist-serv-port and squashes the following commits:

8895a1f [Andrew Or] Add default history server port to ec2 script
(cherry picked from commit 56e009d4f05d990c60e109838fa70457f97f44aa)

Conflicts:

	ec2/spark_ec2.py