diff --git a/.travis.yml b/.travis.yml index deca7d67da9..9b34dc2e493 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,7 @@ cache: apt: true directories: - .spark-dist - - ${HOME}/.m2 + - ${HOME}/.m2/repository/.cache/maven-download-plugin - ${HOME}/R - zeppelin-web/node - zeppelin-web/node_modules @@ -42,6 +42,10 @@ matrix: - jdk: "oraclejdk7" env: SCALA_VER="2.11" PROFILE="-Prat" BUILD_FLAG="clean" TEST_FLAG="org.apache.rat:apache-rat-plugin:check" TEST_PROJECTS="" + # Test checkstyle with spark 2.0.0 and scala 2.11 + - jdk: "oraclejdk7" + env: CHECKSTYLE=1 SCALA_VER="2.11" SPARK_VER="2.0.0" HADOOP_VER="2.3" PROFILE="-Pspark-2.0 -Phadoop-2.3 -Ppyspark -Pscala-2.11" BUILD_FLAG="package -DskipTests -DskipRat" TEST_FLAG="validate -Pcheckstyle" TEST_PROJECTS="" + # Test all modules with spark 2.0.0 and scala 2.11 - jdk: "oraclejdk7" env: SCALA_VER="2.11" SPARK_VER="2.0.0" HADOOP_VER="2.3" PROFILE="-Pspark-2.0 -Phadoop-2.3 -Ppyspark -Psparkr -Pscalding -Pexamples -Pscala-2.11" BUILD_FLAG="package -Pbuild-distr -DskipRat" TEST_FLAG="verify -Pusing-packaged-distr -DskipRat" TEST_PROJECTS="" @@ -75,6 +79,7 @@ matrix: env: PYTHON="3" SCALA_VER="2.11" SPARK_VER="2.0.0" HADOOP_VER="2.3" PROFILE="-Pspark-2.0 -Phadoop-2.3 -Ppyspark -Pscala-2.11" BUILD_FLAG="package -pl spark,python -am -DskipTests -DskipRat" TEST_FLAG="verify -DskipRat" TEST_PROJECTS="-pl zeppelin-interpreter,zeppelin-display,spark-dependencies,spark,python -Dtest=org.apache.zeppelin.spark.PySpark*Test,org.apache.zeppelin.python.* -Dpyspark.test.exclude='' -DfailIfNoTests=false" before_install: + - mkdir -p .spark-dist - echo "MAVEN_OPTS='-Xms1024M -Xmx2048M -XX:MaxPermSize=1024m -XX:-UseGCOverheadLimit'" >> ~/.mavenrc - ./testing/install_external_dependencies.sh - ls -la .spark-dist ${HOME}/.m2/repository/.cache/maven-download-plugin || true @@ -82,6 +87,8 @@ before_install: - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1600x1024x16" - ./dev/change_scala_version.sh $SCALA_VER - source ~/.environ + - cat ~/.m2/settings.xml || true + - sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml # travis CI 4629 install: - mvn -Dorg.slf4j.simpleLogger.defaultLogLevel=warn $BUILD_FLAG $PROFILE -B diff --git a/_tools/checkstyle.xml b/_tools/checkstyle.xml index 618d74d14e2..c3e2d7255fa 100644 --- a/_tools/checkstyle.xml +++ b/_tools/checkstyle.xml @@ -15,268 +15,211 @@ limitations under the License. --> + "-//Puppy Crawl//DTD Check Configuration 1.3//EN" + "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/alluxio/src/main/java/org/apache/zeppelin/alluxio/AlluxioInterpreter.java b/alluxio/src/main/java/org/apache/zeppelin/alluxio/AlluxioInterpreter.java index 79e10b6f95d..03e2dc2cdc5 100644 --- a/alluxio/src/main/java/org/apache/zeppelin/alluxio/AlluxioInterpreter.java +++ b/alluxio/src/main/java/org/apache/zeppelin/alluxio/AlluxioInterpreter.java @@ -70,8 +70,8 @@ public AlluxioInterpreter(Properties property) { @Override public void open() { - logger.info("Starting Alluxio shell to connect to " + alluxioMasterHostname + - " on port " + alluxioMasterPort); + logger.info("Starting Alluxio shell to connect to " + alluxioMasterHostname + + " on port " + alluxioMasterPort); System.setProperty(ALLUXIO_MASTER_HOSTNAME, alluxioMasterHostname); System.setProperty(ALLUXIO_MASTER_PORT, alluxioMasterPort); diff --git a/bigquery/src/main/java/org/apache/zeppelin/bigquery/BigQueryInterpreter.java b/bigquery/src/main/java/org/apache/zeppelin/bigquery/BigQueryInterpreter.java index 33e196003b0..d91422acfe5 100644 --- a/bigquery/src/main/java/org/apache/zeppelin/bigquery/BigQueryInterpreter.java +++ b/bigquery/src/main/java/org/apache/zeppelin/bigquery/BigQueryInterpreter.java @@ -263,8 +263,8 @@ private InterpreterResult executeSql(String sql) { } //Function to run the SQL on bigQuery service - public static Iterator run(final String queryString, - final String projId, final long wTime, final long maxRows) + public static Iterator run(final String queryString, + final String projId, final long wTime, final long maxRows) throws IOException { try { QueryResponse query = service.jobs().query( diff --git a/elasticsearch/src/main/java/org/apache/zeppelin/elasticsearch/ElasticsearchInterpreter.java b/elasticsearch/src/main/java/org/apache/zeppelin/elasticsearch/ElasticsearchInterpreter.java index 549b5f25efd..406a9689b6a 100644 --- a/elasticsearch/src/main/java/org/apache/zeppelin/elasticsearch/ElasticsearchInterpreter.java +++ b/elasticsearch/src/main/java/org/apache/zeppelin/elasticsearch/ElasticsearchInterpreter.java @@ -77,25 +77,25 @@ public class ElasticsearchInterpreter extends Interpreter { private static Logger logger = LoggerFactory.getLogger(ElasticsearchInterpreter.class); private static final String HELP = "Elasticsearch interpreter:\n" - + "General format: ///