Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ZEPPELIN-5973] Bump Livy 0.8.0-incubating #4678

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ jobs:
rm -rf spark/interpreter/metastore_db
./mvnw verify -pl spark-submit,spark/interpreter -am -Dtest=org/apache/zeppelin/spark/* -Pspark-3.5 -Pspark-scala-2.13 -Phadoop3 -Pintegration -DfailIfNoTests=false ${MAVEN_ARGS}

livy-0-7-with-spark-3-4-1-under-python3:
livy-0-8-with-spark-3-4-1-under-python3:
runs-on: ubuntu-20.04
steps:
- name: Checkout
Expand All @@ -450,7 +450,7 @@ jobs:
run: |
./mvnw install -DskipTests -pl livy -am ${MAVEN_ARGS}
./testing/downloadSpark.sh "3.4.1" "3"
./testing/downloadLivy.sh "0.7.1-incubating"
./testing/downloadLivy.sh "0.8.0-incubating" "2.11"
- name: Setup conda environment with python 3.9 and R
uses: conda-incubator/setup-miniconda@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions livy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
Livy interpreter for Apache Zeppelin

# Prerequisities
You can follow the instructions at [Livy Quick Start](http://livy.io/quickstart.html) to set up livy.
You can follow the instructions at [Livy Get Started](https://livy.apache.org/get-started/) to set up livy.

# Run Integration Tests
You can add integration test to [LivyInterpreter.java](https://github.com/apache/zeppelin/blob/master/livy/src/test/java/org/apache/zeppelin/livy/LivyInterpreterIT.java) and run the integration test either via the CI environment or locally. You need to download livy-0.2 and spark-1.5.2 to local, then use the following script to run the integration test.
You can add integration test to [LivyInterpreter.java](https://github.com/apache/zeppelin/blob/master/livy/src/test/java/org/apache/zeppelin/livy/LivyInterpreterIT.java) and run the integration test either via the CI environment or locally. You need to download livy-0.8 and spark-2.4.8 to local, then use the following script to run the integration test.

```bash
#!/usr/bin/env bash
export LIVY_HOME=<path_of_livy_0.2.0>
export SPARK_HOME=<path_of_spark-1.5.2>
export LIVY_HOME=<path_of_livy_0.8.0>
export SPARK_HOME=<path_of_spark-2.4.8>
./mvnw clean verify -pl livy -DfailIfNoTests=false
```
2 changes: 1 addition & 1 deletion livy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<spring.security.kerberosclient>1.0.1.RELEASE</spring.security.kerberosclient>

<!--test library versions-->
<livy.version>0.7.1-incubating</livy.version>
<livy.version>0.8.0-incubating</livy.version>
<spark.version>2.4.8</spark.version>
<hadoop.version>${hadoop2.7.version}</hadoop.version>
</properties>
Expand Down
16 changes: 12 additions & 4 deletions testing/downloadLivy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,21 @@
# limitations under the License.
#

if [[ "$#" -ne 1 ]]; then
echo "usage) $0 [livy version]"
echo " eg) $0 0.2"
if [[ "$#" -ne 1 && "$#" -ne 2 ]]; then
echo "usage) $0 <livy version> [scala version]"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usually, <arg> represent the required arg, but [arg] represent the optional arg

echo " eg) $0 0.7.1-incubating"
echo " $0 0.8.0-incubating 2.11"
exit 0
fi

# See simple version normalization:
# http://stackoverflow.com/questions/16989598/bash-comparing-version-numbers
function version { echo "$@" | awk -F. '{ printf("%03d%03d%03d\n", $1,$2,$3); }'; }
LIVY_VERSION="${1}"
SCALA_VERSION_SUFFIX=""
if [ $(version $LIVY_VERSION) -ge $(version "0.8.0") ]; then
SCALA_VERSION_SUFFIX="_${2}"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since 0.8.0, livy binary zip contains scala suffix

https://dist.apache.org/repos/dist/release/incubator/livy/0.7.1-incubating/apache-livy-0.7.1-incubating-bin.zip
https://dist.apache.org/repos/dist/release/incubator/livy/0.8.0-incubating/apache-livy-0.8.0-incubating_2.11-bin.zip

fi

set -xe

Expand All @@ -49,7 +57,7 @@ download_with_retry() {
}

LIVY_CACHE=".livy-dist"
LIVY_ARCHIVE="apache-livy-${LIVY_VERSION}-bin"
LIVY_ARCHIVE="apache-livy-${LIVY_VERSION}${SCALA_VERSION_SUFFIX}-bin"
export LIVY_HOME="${ZEPPELIN_HOME}/livy-server-$LIVY_VERSION"
echo "LIVY_HOME is ${LIVY_HOME}"

Expand Down