You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ni...@apache.org on 2019/09/05 02:35:38 UTC

[kylin] branch engine-flink updated: [KYLIN-3921] Bump Flink version from 1.7.1 to 1.9.0

This is an automated email from the ASF dual-hosted git repository.

nic pushed a commit to branch engine-flink
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/engine-flink by this push:
     new dba1242  [KYLIN-3921] Bump Flink version from 1.7.1 to 1.9.0
dba1242 is described below

commit dba1242d04d941faec0fc86c23c5f5be59537b96
Author: yanghua <ya...@gmail.com>
AuthorDate: Wed Sep 4 19:03:10 2019 +0800

    [KYLIN-3921] Bump Flink version from 1.7.1 to 1.9.0
---
 build/script/download-flink.sh | 15 ++++++++-------
 engine-flink/pom.xml           |  2 +-
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/build/script/download-flink.sh b/build/script/download-flink.sh
index 1520408..1185904 100644
--- a/build/script/download-flink.sh
+++ b/build/script/download-flink.sh
@@ -27,36 +27,37 @@ if [[ `uname -a` =~ "Darwin" ]]; then
     alias md5cmd="md5 -q"
 fi
 
-flink_version="1.7.2"
+flink_version="1.9.0"
 scala_version="2.11"
 flink_pkg_md5="e0b5ce7f6352009c74b6c369f5872a5a"
 guava_dependency_version="14.0.1"
 jersey_version="1.9"
+hadoop_version="2.7.5"
 hbase_version="1.1.1"
 yammer_version="2.2.0"
 htrace_version="3.1.0-incubating"
 
-if [ ! -f "build/flink-${flink_version}-bin-hadoop27-scala_${scala_version}.tgz" ]; then
+if [ ! -f "build/flink-${flink_version}-bin-scala_${scala_version}.tgz" ]; then
     echo "no binary file found"
-    wget --directory-prefix=build/ http://archive.apache.org/dist/flink/flink-${flink_version}/flink-${flink_version}-bin-hadoop27-scala_${scala_version}.tgz || echo "Download flink failed"
+    wget --directory-prefix=build/ http://archive.apache.org/dist/flink/flink-${flink_version}/flink-${flink_version}-bin-scala_${scala_version}.tgz || echo "Download flink failed"
 else
     if [ `md5cmd build/ | awk '{print $1}'` != "${flink_pkg_md5}" ]; then
         echo "md5 check failed"
-        rm build/flink-${flink_version}-bin-hadoop27-scala_${scala_version}.tgz
-        wget --directory-prefix=build/ http://archive.apache.org/dist/flink/flink-${flink_version}/flink-${flink_version}-bin-hadoop27-scala_${scala_version}.tgz || echo "Download flink failed"
+        rm build/flink-${flink_version}-bin-scala_${scala_version}.tgz
+        wget --directory-prefix=build/ http://archive.apache.org/dist/flink/flink-${flink_version}/flink-${flink_version}-bin-scala_${scala_version}.tgz || echo "Download flink failed"
     fi
 fi
 unalias md5cmd
 
-tar -zxvf build/flink-${flink_version}-bin-hadoop27-scala_${scala_version}.tgz -C build/   || { exit 1; }
+tar -zxvf build/flink-${flink_version}-bin-scala_${scala_version}.tgz -C build/   || { exit 1; }
 mv build/flink-${flink_version} build/flink
 
 # Remove unused components in Flink
-rm -f build/flink/lib/flink-python*
 rm -rf build/flink/examples
 rm -rf build/flink/opt
 
 # Download some dependencies
+wget --directory-prefix=build/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-shaded-hadoop-2-uber/${hadoop_version}-7.0/flink-shaded-hadoop-2-uber-${hadoop_version}-7.0.jar || echo "Download flink shaded hadoop dependency failed."
 wget --directory-prefix=build/flink/lib/ http://central.maven.org/maven2/com/google/guava/guava/${guava_dependency_version}/guava-${guava_dependency_version}.jar || echo "Download guava dependency failed."
 wget --directory-prefix=build/flink/lib/ http://central.maven.org/maven2/org/apache/flink/flink-hadoop-compatibility_${scala_version}/${flink_version}/flink-hadoop-compatibility_${scala_version}-${flink_version}.jar || echo "Download flink-hadoop-compatibility dependency failed."
 wget --directory-prefix=build/flink/lib/ http://central.maven.org/maven2/com/sun/jersey/jersey-core/${jersey_version}/jersey-core-${jersey_version}.jar || echo "Download jersey-core dependency failed."
diff --git a/engine-flink/pom.xml b/engine-flink/pom.xml
index e646f84..d7dff84 100644
--- a/engine-flink/pom.xml
+++ b/engine-flink/pom.xml
@@ -34,7 +34,7 @@
     </parent>
 
     <properties>
-        <flink.version>1.7.1</flink.version>
+        <flink.version>1.9.0</flink.version>
     </properties>
 
     <dependencies>