diff --git a/.travis.yml b/.travis.yml index 6013bbf5f44..168193c2b69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,9 +33,9 @@ addons: matrix: include: - # Test all modules with spark-2.0.0-preview and scala 2.11 + # 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 -Dspark.version=2.0.0-preview -Phadoop-2.3 -Ppyspark -Psparkr -Pscalding -Pexamples -Pscala-2.11" BUILD_FLAG="package -Pbuild-distr" TEST_FLAG="verify -Pusing-packaged-distr" TEST_PROJECTS="" + 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" TEST_FLAG="verify -Pusing-packaged-distr" TEST_PROJECTS="" # Test all modules with scala 2.10 - jdk: "oraclejdk7" diff --git a/README.md b/README.md index d702467d168..57ea2679da4 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,7 @@ Here're some examples: ```sh # build with spark-2.0, scala-2.11 +./dev/change_scala_version.sh 2.11 mvn clean package -Pspark-2.0 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pscala-2.11 # build with spark-1.6, scala-2.10 @@ -306,6 +307,7 @@ For configuration details check __`./conf`__ subdirectory. To produce a Zeppelin package compiled with Scala 2.11, use the -Pscala-2.11 profile: ``` +./dev/change_scala_version.sh 2.11 mvn clean package -Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark -Pscala-2.11 -DskipTests clean install ``` diff --git a/dev/create_release.sh b/dev/create_release.sh index 60fc5bd9389..14688b60f97 100755 --- a/dev/create_release.sh +++ b/dev/create_release.sh @@ -66,6 +66,7 @@ function make_binary_release() { cp -r "${WORKING_DIR}/zeppelin" "${WORKING_DIR}/zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME}" cd "${WORKING_DIR}/zeppelin-${RELEASE_VERSION}-bin-${BIN_RELEASE_NAME}" + ./dev/change_scala_version.sh 2.11 echo "mvn clean package -Pbuild-distr -DskipTests ${BUILD_FLAGS}" mvn clean package -Pbuild-distr -DskipTests ${BUILD_FLAGS} if [[ $? -ne 0 ]]; then @@ -102,8 +103,8 @@ function make_binary_release() { git_clone make_source_package -make_binary_release all "-Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pr" -make_binary_release netinst "-Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pr -pl !alluxio,!angular,!cassandra,!elasticsearch,!file,!flink,!hbase,!ignite,!jdbc,!kylin,!lens,!livy,!markdown,!postgresql,!python,!shell" +make_binary_release all "-Pspark-2.0 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pr -Pscala-2.11" +make_binary_release netinst "-Pspark-2.0 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pr -Pscala-2.11 -pl !alluxio,!angular,!cassandra,!elasticsearch,!file,!flink,!hbase,!ignite,!jdbc,!kylin,!lens,!livy,!markdown,!postgresql,!python,!shell" # remove non release files and dirs rm -rf "${WORKING_DIR}/zeppelin" diff --git a/docs/install/install.md b/docs/install/install.md index 98adc745fe3..93891ef4874 100644 --- a/docs/install/install.md +++ b/docs/install/install.md @@ -94,6 +94,7 @@ Here are some examples with several options ``` # build with spark-2.0, scala-2.11 +./dev/change_scala_version.sh 2.11 mvn clean package -Pspark-2.0 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pscala-2.11 # build with spark-1.6, scala-2.10 @@ -394,4 +395,4 @@ You can configure Apache Zeppelin with both **environment variables** in `conf/z