aboutsummaryrefslogtreecommitdiff
path: root/dev/scalastyle
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/scalastyle
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/scalastyle')
-rwxr-xr-xdev/scalastyle6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/scalastyle b/dev/scalastyle
index 0e8fd5cc8d..a02d06912f 100755
--- a/dev/scalastyle
+++ b/dev/scalastyle
@@ -17,12 +17,12 @@
# limitations under the License.
#
-echo -e "q\n" | SPARK_HIVE=true sbt/sbt scalastyle > scalastyle.txt
+echo -e "q\n" | sbt/sbt -Phive scalastyle > scalastyle.txt
# Check style with YARN alpha built too
-echo -e "q\n" | SPARK_HADOOP_VERSION=0.23.9 SPARK_YARN=true sbt/sbt yarn-alpha/scalastyle \
+echo -e "q\n" | sbt/sbt -Pyarn -Phadoop-0.23 -Dhadoop.version=0.23.9 yarn-alpha/scalastyle \
>> scalastyle.txt
# Check style with YARN built too
-echo -e "q\n" | SPARK_HADOOP_VERSION=2.2.0 SPARK_YARN=true sbt/sbt yarn/scalastyle \
+echo -e "q\n" | sbt/sbt -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 yarn/scalastyle \
>> scalastyle.txt
ERRORS=$(cat scalastyle.txt | grep -e "\<error\>")