Added: 
dev/incubator/heron/heron-0.20.4-incubating-candidate-1/heron-install-0.20.4-incubating-debian10.sh
==============================================================================
--- 
dev/incubator/heron/heron-0.20.4-incubating-candidate-1/heron-install-0.20.4-incubating-debian10.sh
 (added)
+++ 
dev/incubator/heron/heron-0.20.4-incubating-candidate-1/heron-install-0.20.4-incubating-debian10.sh
 Thu May 13 13:24:41 2021
@@ -0,0 +1,2771647 @@
+#!/bin/bash -e
+# Copyright 2015 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+function set_untar_flags {
+  # Some tar implementations emit verbose timestamp warnings, allowing the 
ability to disable them
+  # via --warning=no-timestamp (which we want to do in that case). To find out 
if we have one of
+  # those implementations, we see if help returns an error for that flag.
+  SUPPRESS_TAR_TS_WARNINGS="--warning=no-timestamp"
+  tar $SUPPRESS_TAR_TS_WARNINGS --help &> /dev/null && 
TAR_X_FLAGS=$SUPPRESS_TAR_TS_WARNINGS
+  # echo this so function doesn't return 1
+  echo $TAR_X_FLAGS
+}
+
+# Untars a gzipped archived to an output dir. Lazily creates dir if it doesn't 
exit
+function untar {
+  if (( $# < 2 )); then
+    echo "Usage: untar <tar_file> <output_dir>" >&2
+    echo "Args passed: $@" >&2
+    exit 1
+  fi
+  [ -d "$2" ] || mkdir -p $2
+  tar xfz $1 -C $2 $TAR_X_FLAGS
+}
+
+function test_write() {
+  local file="$1"
+  while [ "$file" != "/" ] && [ -n "${file}" ] && [ ! -e "$file" ]; do
+    file="$(dirname "${file}")"
+  done
+  [ -w "${file}" ] || {
+    echo >&2
+    echo "The Heron installer must have write access to $1!" >&2
+    echo >&2
+    usage
+  }
+}
+
+# Test for unzip dependencies
+function check_unzip() {
+  if ! which unzip >/dev/null; then
+    echo >&2
+    echo "unzip not found, please install the corresponding package." >&2
+    echo "See $getting_started_url for more information on" >&2
+    echo "dependencies of Heron." >&2
+    exit 1
+  fi
+}
+
+# Test for tar dependencies
+function check_tar() {
+  if ! which tar >/dev/null; then
+    echo >&2
+    echo "tar not found, please install the corresponding package." >&2
+    echo "See $getting_started_url for more information on" >&2
+    echo "dependencies of Heron." >&2
+    exit 1
+  fi
+}
+
+# Test for java dependencies
+function check_java() {
+  if [ -z "${JAVA_HOME-}" ]; then
+    case "$(uname -s | tr 'A-Z' 'a-z')" in
+      linux)
+        JAVA_HOME="$(readlink -f $(which java) 2>/dev/null | sed 
's_/bin/java__')" || true
+        BASHRC="~/.bashrc"
+        ;;
+      freebsd)
+        JAVA_HOME="/usr/local/openjdk8"
+        BASHRC="~/.bashrc"
+        ;;
+      darwin)
+        JAVA_HOME="$(/usr/libexec/java_home -v ${JAVA_VERSION}+ 2> /dev/null)" 
|| true
+        BASHRC="~/.bash_profile"
+        ;;
+    esac
+  fi
+  if [ ! -x "${JAVA_HOME}/bin/java" ]; then
+    echo >&2
+    echo "Java not found, please install the corresponding package" >&2
+    echo "See $getting_started_url for more information on" >&2
+    echo "dependencies of Heron." >&2
+    exit 1
+  fi
+}
+
+set_untar_flags
+
+# Copyright 2015 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Heron self-extractable installer for client package
+
+# Set help URL
+getting_started_url=https://heron.incubator.apache.org/docs/getting-started-local-single-node/
+
+# Installation and etc prefix can be overriden from command line
+install_prefix=${1:-"/usr/local/heron"}
+
+progname="$0"
+
+echo "Heron installer"
+echo "---------------"
+echo
+
+function usage() {
+  echo "Usage: $progname [options]" >&2
+  echo "Options are:" >&2
+  echo "  --prefix=/some/path set the prefix path (default=/usr/local)." >&2
+  echo "  --user configure for user install, expands to" >&2
+  echo '           `--prefix=$HOME/.heron`.' >&2
+  exit 1
+}
+
+prefix="/usr/local"
+bin="%prefix%/bin"
+base="%prefix%/heron"
+conf="%prefix%/heron/conf"
+
+for opt in "${@}"; do
+  case $opt in
+    --prefix=*)
+      prefix="$(echo "$opt" | cut -d '=' -f 2-)"
+      ;;
+    --user)
+      bin="$HOME/bin"
+      base="$HOME/.heron"
+      ;;
+    *)
+      usage
+      ;;
+  esac
+done
+
+bin="${bin//%prefix%/${prefix}}"
+base="${base//%prefix%/${prefix}}"
+
+check_unzip; check_tar; check_java
+
+# Test for write access
+test_write "${bin}"
+test_write "${base}"
+
+# Do the actual installation
+echo -n "Cleaning up symlinks in ${bin}, if present."
+
+# Cleaning-up, with some guards.
+if [ -L "${bin}/heron" ]; then
+  rm -f "${bin}/heron"
+fi
+
+if [ -L "${bin}/heron-explorer" ]; then
+  rm -f "${bin}/heron-explorer"
+fi
+
+if [ -L "${bin}/heron-tracker" ]; then
+  rm -f "${bin}/heron-tracker"
+fi
+
+if [ -L "${bin}/heron-ui" ]; then
+  rm -f "${bin}/heron-ui"
+fi
+
+if [ -L "${bin}/heron-apiserver" ]; then
+  rm -f "${bin}/heron-apiserver"
+fi
+
+if [ -d "${base}" -a -x "${base}/bin/heron" ]; then
+  rm -fr "${base}"
+fi
+
+mkdir -p ${bin} ${base} ${base}/etc
+echo "..done"
+
+echo -n "Uncompressing heron package."
+unzip -q -o "${BASH_SOURCE[0]}" -d "${base}"
+untar ${base}/heron.tar.gz ${base}
+echo "..done"
+chmod 0755 ${base}/bin/heron
+chmod 0755 ${base}/bin/heron-explorer
+chmod 0755 ${base}/bin/heron-tracker
+chmod 0755 ${base}/bin/heron-ui
+chmod 0755 ${base}/bin/heron-apiserver
+chmod -R og-w "${base}"
+chmod -R og+rX "${base}"
+chmod -R u+rwX "${base}"
+
+ln -s "${base}/bin/heron" "${bin}/heron"
+ln -s "${base}/bin/heron-explorer" "${bin}/heron-explorer"
+ln -s "${base}/bin/heron-tracker" "${bin}/heron-tracker"
+ln -s "${base}/bin/heron-ui" "${bin}/heron-ui"
+ln -s "${base}/bin/heron-apiserver" "${bin}/heron-apiserver"
+
+echo -n "Uncompressing heron core."
+untar ${base}/dist/heron-core.tar.gz ${base}/dist
+echo "..done"
+
+rm "${base}/heron.tar.gz"
+rm -f "${base}/dist/release.yaml"
+
+cat <<EOF
+
+Heron is now installed!
+
+Make sure you have "${bin}" in your path.
+
+See ${getting_started_url} for how to use Heron.
+EOF
+echo
+cat <<'EOF'
+heron.build.version : '0.20.4-incubating-rc1'
+heron.build.time : Mon May 10 03:03:47 UTC 2021
+heron.build.timestamp : 1620616441000
+heron.build.host : asf923.gq1.ygridcore.net
+heron.build.user : jenkins
+heron.build.git.revision : 0.20.4-incubating-rc1
+heron.build.git.status : Clean
+EOF
+exit 0
+PK�drp…°ê 
Ðo»+«hÈIH-Áv?Õ-Àß՞Ž÷òRæyZ‡vêØ8FëÆå™rò®)¹‘÷1}m”æSG¹1òn”× 
®V¶fÌ¬vÝ14&£@KÝÄûÃփ
+]¥\7÷”Ãö
Û/ëõbM¼�ê×êð.vç.CI¢½S^¨óð`kù3ä*'×¹ÔŽ_5m"ÚiÉëð
žo^ixƒöý’Ú¾•èóòU'ݍÌ+ïÃÃӚ£DÈØ½OKe‡±¸…î
+)GJƒã}¬êîŠmþ‹UbÑÈVpЛnt“»ro@`¥Úræb•ÙË~ø¡àw>Æô®}’¸…
ê½Ã,õò¦j5oµ>eE8¯þZŸ¬Þ¿IådÁœmbâ¹S;¼§b;âKÐßÿÂÍÒê`ðܑ 
ÐÜdØS!Þ!í£öѯe˜‰çs‡ëÝEݽ_ˆ¤Œ×ÚÑûÀ±Gý)O¿z4VdW'øùj¯™ëG… 
¹€Ëû+³úµ¼TƒLCÔPáþ&$bòw"Ö5—Å®Û9äWóƒ%X¦f22>‘!9³Ï\¦WFڔ‹WOæ„ÙÙÞOŒÇÞ¿·KÚV-<{‘ÝKqܵfWÄå²5dwá|ñ–yÚ8Ÿ°.ððÀ~­eTÐ⁒®ärïÐ{bZÆmåe˜¾Òß[ó!æ-9Î#9>§\η41
+ž~ì°¤~/¤F!†éŸ´É²»vÒ¢Vu
1oOuL™s½WãGæß/¶5”½¬Cy£âõªs©eË(Ùô(;Íò’;H¢¦=ioÖ“Ô틬g"ã1£¨¦öŠ×yiåXxÞÍ‹f/Û
…piì+ðV[þ0Õ¾^Rò]ÂÊB™§ÿ‚\·uæ‡c›’Á(@Ù}é¡Ñ°ÐµðÀÏ$#±’Øvw,ËgŽ*ZIò6$òi}Eꤱ×Á
2Ù²"†–‘QmÕ;&mmã8í51
\=qš©œì-³.~|JÆ,K¾r»œa~ùÜfös:¿—Ñ"gÂNÜë1s^cìŽ#4ÒøôÅPWˆŠïs
ÌSÆÏ„a}Ñiioå²8™ÂiŸ96ib­å&ÉFպۿ¬ƒGà]R‡¾PǘÆ#Æ#g'}ÇÕe£Ž‡‚vÀØ4M‚,l¾ÆÕ=ºoC–ã%A®^Hûépã=ã2oò|³°00׏UnyıÌ"
+oÅ%%øÎª¸_puÖäÌá_WÊ^iÝö­Eã
À¼ÆFF7îJu蒤ú…]gg JS“q"!å3Ð%Ѐ˜+1k‹ƒ
+ÊЧ÷ò-"‰^¯åÌ×£bƒÜÖø@Î+ËpÑC–{@‡í‘êù¦Ÿ¢LDD}ý 3Ó—‹ÿ˜–TÉ:a΢0!_aXsk
@ì<–Ö…8½’þV�î@3«Y`ƒKSÖ238""ñ"[@E›ÝÔôà@¼e^ýHé¯4ƒ   ­~Þè2d 
œŽÌ·Z6{v4][*™.-=˜ÊÀï2鄕gä¶\ÿdDS8Ê?cÕâú:@J/‰EÎ×±Ûù͋ĈQ<"AJ%Ž…
œQj|a¾jM€9
+*.ãU:8êgRã³?±À³�Rؤª.ZŠPZYT‰²Cj#ÃÉ|A0Ž )r•}16-‘µâkB¨\;`9Ò^p–¢í 
ŒŒÁ€Œ¹Övh+­µ9×¼«;ð&ìŽ-DZW·‡e6Bäéîámœ—ÿ‚ãÉk3HÎߣ6Ñc‡4
6Í6º¨a;�'¿»)
 %þ2û¢µ~bÀ‚܇,Õ g2ÐCPÌÕrÇ.¶
+c¸>Y.#`KQ´e!}½Hnԏ`îŽ(ñŠ=h`ÎâØ?a­áÞ[>ï§<Kô­,SšVÎüÇ9p6ÿpéõ7ÑjÈ<
+Ì«ÅWÑë¸ó;>O¹ËõïÊ·„¹Y²<ÏÌ£ù°
+R°lFl˜y?”öÂȹ»î¶ÐÇúºæ{EÛo½Éås‰ö"pgd=—$Øö•q’üŒ|e„Á65X
+€—ŒöE2)ӌՎܲUĬÚË
+(SН¸S¨K•ZÀûØÄó.P±¿÷1¶]7!bpZüX½Ø¾˜¸À”nØ+‡í“h؍¾Ò¸0-¸îMõ²³ýO¨f¥l†Ã7í!Ñ)Dí(&¥·%«f†âx
ºÉ˘|øB#æOAJÌ/´€'ßëBÎ;º

Reply via email to