diff options
author | Sean Owen <sowen@cloudera.com> | 2014-04-16 09:34:59 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-04-16 09:34:59 -0700 |
commit | 77f836799639ea939a1773cef2f4828b381f5ca2 (patch) | |
tree | 9b6bae7218d4a12f99269da88cf05487c5ab5395 /dev/scalastyle | |
parent | c3527a333a0877f4b49614f3fd1f041b01749651 (diff) | |
download | spark-77f836799639ea939a1773cef2f4828b381f5ca2.tar.gz spark-77f836799639ea939a1773cef2f4828b381f5ca2.tar.bz2 spark-77f836799639ea939a1773cef2f4828b381f5ca2.zip |
SPARK-1497. Fix scalastyle warnings in YARN, Hive code
(I wasn't sure how to automatically set `SPARK_YARN=true` and `SPARK_HIVE=true` when running scalastyle, but these are the errors that turn up.)
Author: Sean Owen <sowen@cloudera.com>
Closes #413 from srowen/SPARK-1497 and squashes the following commits:
f0c9318 [Sean Owen] Fix more scalastyle warnings in yarn
80bf4c3 [Sean Owen] Add YARN alpha / YARN profile to scalastyle check
026319c [Sean Owen] Fix scalastyle warnings in YARN, Hive code
Diffstat (limited to 'dev/scalastyle')
-rwxr-xr-x | dev/scalastyle | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dev/scalastyle b/dev/scalastyle index 19955b9aaa..7b572f6a89 100755 --- a/dev/scalastyle +++ b/dev/scalastyle @@ -18,6 +18,10 @@ # echo -e "q\n" | sbt/sbt clean scalastyle > scalastyle.txt +# Check style with YARN alpha built too +SPARK_YARN=true sbt/sbt yarn/scalastyle >> scalastyle.txt +# Check style with YARN built too +SPARK_HADOOP_VERSION=2.2.0 SPARK_YARN=true sbt/sbt yarn/scalastyle >> scalastyle.txt ERRORS=$(cat scalastyle.txt | grep -e "\<error\>") if test ! -z "$ERRORS"; then echo -e "Scalastyle checks failed at following occurrences:\n$ERRORS" |