Author: nicknezis
Date: Wed Jan 5 06:05:06 2022
New Revision: 51909
Log:
Adding heron-install-0.20.5-incubating-rc1-ubuntu18.04.sh
Added:
dev/incubator/heron/heron-0.20.5-incubating-rc1/heron-install-0.20.5-incubating-rc1-ubuntu18.04.sh
(with props)
dev/incubator/heron/heron-0.20.5-incubating-rc1/heron-install-0.20.5-incubating-rc1-ubuntu18.04.sh.asc
dev/incubator/heron/heron-0.20.5-incubating-rc1/heron-install-0.20.5-incubating-rc1-ubuntu18.04.sh.sha512
Added:
dev/incubator/heron/heron-0.20.5-incubating-rc1/heron-install-0.20.5-incubating-rc1-ubuntu18.04.sh
==============================================================================
---
dev/incubator/heron/heron-0.20.5-incubating-rc1/heron-install-0.20.5-incubating-rc1-ubuntu18.04.sh
(added)
+++
dev/incubator/heron/heron-0.20.5-incubating-rc1/heron-install-0.20.5-incubating-rc1-ubuntu18.04.sh
Wed Jan 5 06:05:06 2022
@@ -0,0 +1,3235637 @@
+#!/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.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.5-incubating-rc1'
+heron.build.time : Tue Jan 4 08:29:40 UTC 2022
+heron.build.timestamp : 1641285130000
+heron.build.host : primary
+heron.build.user : release-agent
+heron.build.git.revision : 0.20.5-incubating-rc1
+heron.build.git.status : Clean
+EOF
+exit 0
+PK«1ÐdgÁàdÂòéÔ. [30©º«@h`0só²òð²34ÔÅ׫Ô
Vݼu~;ùÆÑmI=Túc[*'So÷"²¡çn$U7Ac÷RDgÍâFh+em]o3ꥬ'ÞÃXhe?¬m¾°ÎÐdBãt{wVõf÷äì±þ+ç¹à
+JùFN
ÆwîÝ£pûYZÿª=*zwὩã¾Üv©LÁ9AÕíÒ¼þnu2<¾0
>,,oâ+6)ü0B4})u÷%e¬©¬í4çf}
>%º5i^èÝþiI6ûõôé¨H~{Ðêµ»Ù®+ñÕÜd´ÖèÀ§ß1²B_|äPñ~d¿LÓQÀ×CQ7áÝù-nPª:æàjÙM'©R®Âyä¹¼·øwøs¯]#Ü>[bÇ#׳
>W¿Ø(ëøæN £ND¹Ãr+"»jõ1ßìä˶xB.y*êå!
>½ÖÕb?úRç©qÞç&ëùYwZ;ö_M·)
>PßMXF2!>Ä_òw×ϱ¨¦Äbý¸ëÆÎÉÕ¨ùç^öhË.ÏÂ÷TQG. ¸û?À¿GóL~{
>?¡Â|_±©á7&d¹hÖÌ)ÔÖ99¥tí0~E¡}ø¢õgo¤æd¦¨?sÌ\
>Ò&mæPÈl´ÀÇj½·ÏÞÇÁ/ÁTÓZU-c
>g§¶|&¿êN=lbOÉ*[ÉD8è1ïÞFFë+ÃùlI¾oŶ½Ý$BcJë,üü9F¤>8aÆü|7WÓO_îZí'DÈíî>eC*8]ÍþR3F¨±{æè(e
>
>1ÆFã:0ÑdµÄÑæJ=¥dÕ¶èÄx54ÈC5ÇL¨iÎ=~@@Ôjìηi_H°Ñ¹nÚmsÙÊÛáö2å;S
> "vö4þåF[ÚÚ©Wv¤Q\=SÖ[wcBºÂCJÃW¹ET68bÏ Ç¶Àç³îY
>ØEX¥aeP56zfªÙ@V§Ù
+<÷óSÁ÷eóÙ²½Ð»àðlÑÆkÕvJÐÖG¥õ
m âªÌEUeõPS;
p!mÞýê§LþÅ·\ñi>åzïªÄùKïdªÍðÚíò·dñ+Ù¶ï:}o5~l ÿÓnF
¢PäX,i%ì`âÅîq2uÛ+¨òAb÷MNù2o.bBÙ*H¼
Unzà¨àö=?bþLúg\*£O�¸Wò¯àSD»¶ÜÍáУ
Ý-Ey\ÛÓi!7Ú6:1ÑÏ»b±áw̪VEEiÝi[ÅÂ"Þ¶mZv®êi×NFÁA>j°³?µàcÝYÀz/]H
gÒâááâzrëY®1;?¬¨Ùié[Ýã]ÀñéSW4¨"×ZÌ|§âMOm('~ËqBqçKØØ»Ç
ìQï²½;oý»`èbfÇ�ØåP-h¨?²¿[:ä¶®þo<X+¯t¯lõiÔýôcq0#C¹<ÒÞÐÄzýHÐ!#¸OtåíyýÒz¤w¡ÃOÓ
£Ôâan¯íl×W=V¹_uMK¹Zù$°ÔÓBèжöûo×yhжª~¤H£/Í
>ZÔo·á]ëäÅ+_|ÂD©¦·3ã<ÐÌJëÔ`ë÷Ãd¡$6ûÍ!k´aE2i:åbÒØú欱÷9DjF¹°Ð;ÏXÃÓ°N
ObßKHÙò(¼ºÈû\·Dc-o9Ì+§<¼'I©0±Ä
É¿q=ÁÀ)ïýBÎø"ÇBiäÙçï¾Ó«¸Yq`®7%ÐZ
\ðåb¢M8Ó§P}-4÷ÂD}
ï·QP0¤ÚÛ4P碦®Á!V ãG
ÈB7ÎÈÅÕY P:D´ß4BzÅÖ`¾iîàRpñ$²
+ò¿=y2Sáè'?ñæLÉÖqÜAµâRYRÍ MßÈ&äèWÕ`é±Ùèýµ°fëgñȳ_$´
[yQâÌXTqðn>O¥4¬æ'ögÂÐ$¤·b²¨©ËÖïö
l#G,
çYâ É¢1Q
aʱ$éЬÄÑÄ½á øÜþ²úAB.¾w(Bìð{Ë7ÂDV94öã×Ð7ñEÂ
>j?#ÿtÄò
<ªÊ8üø$q9¬Ô1^j°ÒÆ
üø#1ì¦Â8*õ7§Ó;\й}º¶ÕȯÝI>.²íÃO;3þAoÜö¦ÔâöиvCKePMd£@×øb?+´aØh
V°x_JÂ(ÉïfM¸Ä¡@9j¬SÈ=µ6Ô4Ã"%"åÊ#JpÂfâ;sóÆ#ê7Ù©øe(P
àïáµ>;óà¬ÅÜÃ%bL.7sÈ×·ùDE;ÉòMRqu#`¬0wúù_±säFñSÏÀ
Ûú·+ÜTM~¦~W°Fµ»ÛIâB£ÙÉx)õ7{ÀS.}$õæ^F¹#T
\I:þ¸¿0.ÍýVTqâº<ë+ýj»b
°ôLΧ66GI9ûù¹%OQÄ$y<_Æ
&Ïlñ^gÆén«þ3;ìøÛºªü<W¼äËÖKMAWwÀMkmØý~É]ç^þmNötßdsg>ijù,>¢q5;zöw§óô¼êQª®;°Oû¢#Ü9®èè'Ýt½:>²X¨W©c{ªàÒ?ØzÌÓQ0l¡vÇSùCÕ¡`ÇILôÚÞoܨRtKÍ.iø7yXÁâóÏ?ÃÏÅÔÙThxrÏOT!8ÂMÜr
é¾Zrgp¦+Uïë,aÍ9
ø,Ý.õRòÝæeâìóÎï|DBâIñE
ZuüáÔuó·å-Yæ}±¡×ë²;¶¤Á/»|<#÷^¡@U%ÿð9ª^z2vÙUÐOm¾sâÍß[2§ð¢×Ï[r,|åu<üS-˵dy
ª&ø¥ùy( ÉòN:>hÄ%\"
CßN'ï9©ä|¿}cËÓÅcËhØaÝì§ `LS¿ÿ
Z¹+ÿÁ"SQNNb0âÊØìf8ÑC_½µAÅyúw?ôT¥#õ®Î0R^KîÏOR ±Þ¬×b
pt^?^À|MR+Ë>Ï9ÝÏ&¿CÔ3¹«µp&¥BNUz¦+%øW{î
½æõg!Wyw§åÆ5à_3nÔ\( æØ
+ßË5%ÌnEøÚ6vXæ(Âåâ±8e£ Ýð
.p
$ÂkªËfkÑsøz¸Üæò`íI²zf@X_Ê"T;±NòAZ^(),0¢"à®±áKvT¦1ãù¨9O¨C+×ÎÔ©çUô\]@
ÒÐ<Vy¢û%¢Ý-¼®Ò½
+ÚºþÈÑÜÑ%WgrÔ _Íûøj4½Êy¯êºÖ6ëúts)8X&>x#ÖȶNÄçºfýgAìï
O5`
n¢Yõà<ÿµZÙÄÁíòlWOþùª8¥íñÏéy{áå¾y@RêÂä*îl-Ôd¿YôsëôûîÜ1ÞFÏÞºsÝù!³æï´õ£&®¸
D~Ϊ
üDÁ2Ä VRuêW~ÕO ".`¦S3¨Ë¶ÀæÖ.Æh´ò#·=5k-+ó0mSßw][æAÜÜäj½îüÐé
æ.´ùs¿¿î¯TÕ}>ß°¹·¾Æ(2VÌVãÄÁpíÙ·;Ê%ÐpÛñÙîf3Gyð*Ϥ7Ä
bÃÓ«7·áî(¸ïí#Ï=gØ-0þÄ5øÇè¿ch±á|¡>ú«õ²ò̦LÔæüþ×_S\ÿÑô
¤½0«<ÆF¹ÇÍbdW
5mè{Sg+,¸y§¡35Ê·Ä[þÖá9qE vk`´½¦zþÏ*²rc
GÜ»ðÂ;c7÷£§mà
+áëÍjßíûXtFor6Büóë±z!¢Iаh<mì¼ðlîG9æ¤äã*®