aboutsummaryrefslogtreecommitdiff
path: root/dev/run-tests
diff options
context:
space:
mode:
authorwitgo <witgo@qq.com>2014-07-15 10:46:17 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-07-15 10:46:17 -0700
commit9dd635eb5df52835b3b7f4f2b9c789da9e813c71 (patch)
tree32b0a1f4ff11e9a96d5fc2744827c764e239b017 /dev/run-tests
parentcb09e93c1d7ef9c8f0a1abe4e659783c74993a4e (diff)
downloadspark-9dd635eb5df52835b3b7f4f2b9c789da9e813c71.tar.gz
spark-9dd635eb5df52835b3b7f4f2b9c789da9e813c71.tar.bz2
spark-9dd635eb5df52835b3b7f4f2b9c789da9e813c71.zip
SPARK-2480: Resolve sbt warnings "NOTE: SPARK_YARN is deprecated, please use -Pyarn flag"
Author: witgo <witgo@qq.com> Closes #1404 from witgo/run-tests and squashes the following commits: f703aee [witgo] fix Note: implicit method fromPairDStream is not applicable here because it comes after the application point and it lacks an explicit result type 2944f51 [witgo] Remove "NOTE: SPARK_YARN is deprecated, please use -Pyarn flag" ef59c70 [witgo] fix Note: implicit method fromPairDStream is not applicable here because it comes after the application point and it lacks an explicit result type 6cefee5 [witgo] Remove "NOTE: SPARK_YARN is deprecated, please use -Pyarn flag"
Diffstat (limited to 'dev/run-tests')
-rwxr-xr-xdev/run-tests7
1 files changed, 3 insertions, 4 deletions
diff --git a/dev/run-tests b/dev/run-tests
index edd17b53b3..51e4def0f8 100755
--- a/dev/run-tests
+++ b/dev/run-tests
@@ -21,8 +21,7 @@
FWDIR="$(cd `dirname $0`/..; pwd)"
cd $FWDIR
-export SPARK_HADOOP_VERSION=2.3.0
-export SPARK_YARN=true
+export SBT_MAVEN_PROFILES="-Pyarn -Phadoop-2.3 -Dhadoop.version=2.3.0"
# Remove work directory
rm -rf ./work
@@ -66,8 +65,8 @@ echo "========================================================================="
# (either resolution or compilation) prompts the user for input either q, r,
# etc to quit or retry. This echo is there to make it not block.
if [ -n "$_RUN_SQL_TESTS" ]; then
- echo -e "q\n" | SPARK_HIVE=true sbt/sbt clean package assembly/assembly test | \
- grep -v -e "info.*Resolving" -e "warn.*Merging" -e "info.*Including"
+ echo -e "q\n" | SBT_MAVEN_PROFILES="$SBT_MAVEN_PROFILES -Phive" sbt/sbt clean package \
+ assembly/assembly test | grep -v -e "info.*Resolving" -e "warn.*Merging" -e "info.*Including"
else
echo -e "q\n" | sbt/sbt clean package assembly/assembly test | \
grep -v -e "info.*Resolving" -e "warn.*Merging" -e "info.*Including"