Added: dev/incubator/heron/heron-0.20.5-incubating-rc1/heron-install-0.20.5-incubating-rc1-debian10.sh ============================================================================== --- dev/incubator/heron/heron-0.20.5-incubating-rc1/heron-install-0.20.5-incubating-rc1-debian10.sh (added) +++ dev/incubator/heron/heron-0.20.5-incubating-rc1/heron-install-0.20.5-incubating-rc1-debian10.sh Wed Jan 5 06:00:48 2022 @@ -0,0 +1,3235333 @@ +#!/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 04:50:36 UTC 2022 +heron.build.timestamp : 1641271907000 +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+K0àîàl0ï45µúq0Ð`e¾`÷S0³ÐÙóà=,,]�º:§gó¥ 9t;ªØ5ÙSÑ×J¾5ͨ$ÛÆ:;ê&êjÚ.éÚåaô#ò*!4îBwKX4ì»h´p˳ãÑA2A*·¾4-e´Sú©U&Äó'èâ58ä?6ÊÛTD±ï¾f¥)íÏ)Ù*V´q¨o>½#ÎlÛøâéj@9Ù@\z!<'å0¼óÚâôxGN´I¶b95²i½nï+É ³îÙI»T#¤iãN]jÔbl οo¦?ºMÙÖ 6`æMZòÚÇø6C¨÷Y,,·É»¾seÞKBaîXv_àWä#©,e½)MëQHb\ò6§±¬Êðqë8d½ÓxáÌäýã-±÷ÝêdgÊWhC£@ëÑt=³,í$ qOã;Õ¬¯á`Øp@d½Iiè½zLнbêÌÓ%yÄeNL¶$ÙSä¸Ó¨~sxPX£Ô½Ò"ïë-ms}ÞÈëߺz ûmzjW>U¼%?GýsÉ祻±ïüuð ûÄ3`êJ6`Ä{óÕÐiG8èy½J=kqN:³`Å1JÆèe¦:7#øæû¶ï/¬@U§.ZCØ1ý<ÌoL¤¬Å5°ö¡/Ê'lS[|Í÷£Ô¿|ÃШ۬ PP·ôA`¢dzp½Ké *OÐ éø +®þ²gñòµîbÀWÉtq¡z ÝǦ]¥eG¸7<új hï|ìÑZûÆ$ãÛX(÷ïFâý5¿ó3Ôz];Ú +è. öå#«úM_îÖO4úÝÛòÄmVïhN¯¨cÊ+á$5¾b¶ÆÅrí½~¯äK¹äq|Öaé@Ð2tÓÙuö"ï£E; AÖC�"_yÅSÑRúÉ<lCùòtë{küÿ)rSÞz çuÂËÀÝÛ +Å>üª`ú7PJvrïàѵ@b ¸*}~ÒfitÙx¿3ÓqÏÇ-ÛÇÁϺêõõ±ÚæþEËpó£_ú¬º9µý1åI)ûOJ^V#Z~ö¶[øð÷_OµçMaô$V!c%gµÖ^#Y& +wM÷3¢ugæ1Y~xh]SNéÛ&L¥üÔÄÞ-÷O¯:â°°G¯År}g<æMê¿zÒêÉ)(ddf¶ªwxv÷¨¦lh)f¬^o0ê&ÄßÃX¨¥ ¢÷U7Ù¤i0¡pº¥`$o}?~¬=á<QÆP.[ͪzqÁ½Õyê0A+í÷qÞ]h{O^òì°;;¿U2]`REe`£ä&·§CÄ'W/DÃð F7E_RÍ}NÉ1ãA2c#ê¨QHjC|·sTÉ~=v4(׸xeg#/În¶åJx`ÒðTÞé;¤\ZàÔ,Öô&Ýtp²/â&´5Ò+·Îmõ^ o1ÄrÍY²«`i2÷îîäk×0·%KÌX¤Zv¡ +BÊ5þR)¸sT<mPRÈUl, [aEë©l\3ï»bqÙ¤ïÙT.÷ɬù4¯f{Õæâ|<sl¦'ÔS47NL7È §X3={=óíe y×~,öcuµÄæ¶HãÉNÚh¹ "G®fqªïeÎó¦ÝƵ5 VVI÷M2ö yt?Ø_Þ¶m4±~BÀïÝÜÉÄ^ kè¡u&ê-}/)_D]xªXÚÎYF4_ul6çdsNÓèÙªj]]l½I8£u¹BTøÔX7\Ç`B=xVô5cU!Ðë|mWîÈqÉÐË YÓä:vëd|zEä }Í,¦v¹F_¸ÍA8y¿w×HKç˪i¡¾Aµ¦ýÎN^¾·± ż_«ë¡WòÖâ9_NÓ¬}$]NïäÓ)xAãJ&!C® Äô%«¿,c!iáîͰyÜmÉmù=ÙúýX%EÞYõ7o¬s¬)ë BIÍ,=a°tåKô}©æ4¤%<ÚÃ>â¸8ïý.ßò« Ëa<?³¬ø¢z¦åp ÓôVSFpªX¿èv%qO¿Â{®Aª×nAÚwöù`<ã)MuÐ]©>¦µ¹m®@ÁÄNÜÑVð}ô¦LÄGéòòè·èh-9ʹÝ"ϳc ýç?¤#ßV÷B ¶g Z Á:Èt}ªfUɤðݬ?gÝÀóùO (+¤ã©Û°ÓKÇÝ>fu]Ö2o«QªúèÌS¿ áú4£íQIïÍ ¬¼ÉcÎðFúükôw&>¤ÖrÁÙìó|´½Ê-ÔúÄ9 +eWû§öøâÙ _"kPÜÒ?ÊÇ^|A'ѯÑ8 Ïb]%8.:·7Ú}¾èÛÔZ§Cÿªdv>TÒqitp Zç8²mô]ÞLY×wj¢ã<´Ueÿ9èuÔ ÚPMøÃÔÚËX4ì»JéÃÒD{·^÷$»¹Z+¾ÜÝÞÏ 1?óÑ^:ÏJÕ ÑìX *ÚIrçgìÉ-Ú<4âbºÆï¾Dòxta]û äaØ/ËúäÍH0ÛÓíe/×RmYæ»ÃàiIK# ú@I2õ/w®Ê_Ca¨XéðQ#äZ{4ïæ >Õ íZÄ*~Cè } ШzÜM,åcù¼¥gH{¥[.:ßçæÙJdÂK@´t'ä½þ7e7µv|}³ÛÓ±*BIÈIõYË¡Ù#éϤIãdtôs·÷æw@ÄSÞ-Ñzî³=/o))ååå{´W¯¶ÄñfK_Û.[|*e mã +4«"csÃ6K,Ç äSÆF.Cá ?Æú&dägê°ÛÑàl}ÆÞ()dr[Yö¶ÇÚùà¸ÒÙþõÜ@+)HæöÝ ¤Î2{aÇóÄûG5(c@Ü2!XNmåî×ÇzÆ¢çzç2w¢2eÈÒ RÁöqÄqÌßBÖEds G¹ÐY+yÕù\-Äå.MÖ²»u QnDÃ6Ò\,ê;öE,^é«r8è{Ñ¢a+¤86wðÏ9ºö©Á¹·aºç@ÀÛXeШæ¦o°R£~ü;#%±ºRõ¬ÄÊc uÄI±kz¦J'¨ìq)d,Ý,C3_JGÊ÷;ÿ¼z7"TÎp-ÿèv·/åĪp=ÿó y¡/ÀÍzwöÎÖ%?*H&!egfù«cÞ9=vþ%Z i; l/w~oéTËùÅn®DìePæ)²íPó W·ÍáñN½)KÞmýÛfr»M{Vĺå¦ÝÕÉ?äÏ7[àñùÂï¶³mÉT©ê»ñ>4àµ-ª¼óçKþѸ /%1Ñ´õôU~"$¢Îb»ZºÐsX'è^º°û=²lõ[A|/ÿ]O+36Sν:´ +oý¸ºV2Å Ö¹-¶~§r:ÄÏ·ÖeY1EP :7ÆV@Z;¦./Keuí©z%ïûò¿4·cʼ9RÝá? 8Q·£¤(Mjyc2.ÀåFÐD'&úyW,5ÈŬiVTÖ·U,.áìØ¤eçÚ«§qÜkgtáæ#;úóPòo;ÄÑ^lôÒëçod¥úY±L'ÂÝl2/×¼ID :÷æ!VÕP°Àò©uÚ'°§í§È we&®I|éé k©m@yrRb£;ÝQÎ"äêÆ1aÂ,pG Øïº=;Gö!gì;ò?B¿>ÚRÂð+!÷³Aóq¿sä)Æð÷ì9Ræuej@9l`ÕÍ^ÐËzçðd<ÉÏÏUçu([ô¬çaSʶpÉÐ9Îé? aN\¬0èÝF¥´µ¢ÊÃö²3³ºà¾>nïÍéíXÍ_lÞï°ÉÅG� Ä¡ÀÂ+¸¥·èzÈúÙP\¾¢GæËÇx}[J_%ÖJµ©í9²Ùp CX×Ën!ú×Oã(/2òábÓ|t$WÒÙ£¨q0ä.Âæ. 2ë\6æRÏnß~ +Pr¹1jûÉ·tûÃErÞF²gçºÉ?È4yTãÁï3¸HJïz5²gýúÒø»÷ßwebþ|Ë_àɤEDnâàe8¡!<ÿ& \!.Ï÷_¿¿ÂØDG K¬]Püqçy<WRþubá¤#¥ ó'aLçgÏfYÒWýwèô{²ÑµiyÓé(t»¡k-Cî¢ F}²fkKù´^}_5lOÅ£Ê& +U;H Ëö|Îz¯ºæeÎÆ3þ9ÁÁ�YBP%o~Ë/¬R1a¯¯ÆÕ8Ʋ°=f-Ú´6JªRhú.Wà,̦BÏÚáeRXWÉãE#eô^É5Í2Ïöª;pE¨ìÇÌE£ÆÚã°Å: RDå*åíO-:äðUÅÿéÇH8Ö5nI0^Æ.ÖæÛN:�,JlKëçÇÃÓÏï}ö´µ»"Þx2ñkDZÃI¸¨ Üú¿AäïuõùÍ Þ¸=NN¿ü¼]þaßc0£d-¥À§EÔ$L1ô-3RÁÞø2T®ÔiÀ|bEìP¡ïígÜ[ع3ò¾àäu·m']µi=pÑu2|Cø|µíÚ¼BØÔòM+,õÎ(Æ ØÖz!Iv¿}]Ñò~ÝÜ>¿>FºÀ¤ÛÉÄÙo^ òRæOù&Þ`Ü41DRË`ÜÑ(eÈþh5µ uÜ©k30wÏæt_¸xÁE$GqÍhP±Ç4 ¯&@r¥®PrL¨iO*q_KI²~õ/!]ù% gû?úäEu{ifNÍPaúðÆüC§&
