Added: dev/incubator/heron/heron-0.20.3-incubating-candidate-9/heron-install-0.20.3-incubating-debian10.sh ============================================================================== --- dev/incubator/heron/heron-0.20.3-incubating-candidate-9/heron-install-0.20.3-incubating-debian10.sh (added) +++ dev/incubator/heron/heron-0.20.3-incubating-candidate-9/heron-install-0.20.3-incubating-debian10.sh Wed Jan 20 15:42:33 2021 @@ -0,0 +1,2739552 @@ +#!/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.3-incubating-rc9' +heron.build.time : Sun Jan 17 15:14:08 UTC 2021 +heron.build.timestamp : 1610896925000 +heron.build.host : asf934.gq1.ygridcore.net +heron.build.user : jenkins +heron.build.git.revision : 0.20.3-incubating-rc9 +heron.build.git.status : Clean +EOF +exit 0 +PK� +ä¸Á8@-è·ÙÕÔµdä6`ÇêÖ`ØïjË{ÝìDÀ0 'ÔÕhó0 µ5øçÂ@0äáÓof<è¹l-\°ýaagoW°ð!¡8Íìü°öO?´äÿb +ì÷yÿXôÁOo¨ûnüÇl;P÷näåä2?<èÐý1HÇòø7e'o ê| ¥¿Í yYÝl}0ËÉÙl±ú©üg]áÁ@?æZºY<[üæjó÷b@·å_ ÐÎÍÍYËÓÓÓâ7c9¡®¶\ñKåaKÕ´ä8þ]CâÁ¶ÉÅìú°·Þ@ ç¬,,Ìt´ðü¸ßâó[Ø,ðtÿäJöeØ_"ÿ÷ÑùÛnýź§ÿ^àa¿,~NZ ¨¤E|"¥¤ÅÔSÒVT×ÑêIkjJ«i+ÉiÕ52êj²JÚJêj=y ´ÁâS%5Yv èa¯y9»þôàÁLðÏYÿ]ýÅ)ò{x`Î +° ØêÁ5» -h}¨p ?3Ääêý(ìÁBëp»ýH°ÍòýÉ%Jâ ÌÖ`WÅCåCÇÀMÇ®(§©®f&£®)÷wC¾¿Kûÿe\V]OME]ZVNÓLYúaß¿©ù?DÌëoÈ ûg,¶·pE°JÆdåðÿö?Ãôlè` ÃÈ ,+m¦¨®*41yüSþ¼ø`§ØÊî7=?u@Zq 7ðo²@H'çê +uþmºy ¹±ÿ¶[èï˼@Vîn¿¥ÍO@ø3 Ϥµ9é<L¼¿Íçvò<¼³£ý=¾Üÿ7ôù9#úúÏY÷Èñà:á_í!Aêÿúìÿÿ£Ïÿÿù¸ù~ñÿ/þÿÅÿ¿øÿÿÿâÿ_üÿåì¶Ûþ7üoøGÿù_G@èÿÿâÿ_üÿ¯øÿÿþ±ÿÿKöÿ-yâ@:wËi@n Ýßó¦#Èþv/9B,T®8Êõ7àï*8yüÑùçá?àø§îOFüÃÿÿÌóß¿À~~Á_øÿÿáÿ/üÿ ÿÿ)ü·pÃ@®ÿÝÿýïð÷Ïÿø~áÿ/üÿ ÿ¿Îÿþ¿ÁÔ ?FFy©øekOj,Eu ¶ã¿*äZ«ôǧ[l¤cò\W]_Ü +æ HUzÜû1yïe¼¡¸x³dÙñbñD°²çAj"çÂvGÌùùb§\c²ªÊó¨Y*ØíÝvLøtûRQNÇji¥k´Ì{µ¦ÑB®eÌ¥Ì!L_x¾k96 *òåÃÇþ,`Cß/77P¼Iá ÷Iîû}ä*#ùq@ö¸ *ùÄÜð §}>P Y©ëËzcÈüYÂóÜ~ooÄ|ò½õßðZYÇ2½^~uOÂæð³ðËeÇìºSå^§,`ìÅÐÓL*캩 GøjÉ6=ý|lóÖèCDæ@\Ïçv¶u5ÝF§Ñ/Qª¹ßg}æóݾÃådF/ÌAqÁKÑÐÕU0Eªèªp rie¤Iq1DTÌÙ âIOG °ûòe2»3ÞIpØQ¸IÙKA}6}]>ìEv%$¡09ÎI5Óft´ß!®ÑI½ë®?<âÍ_Þ§ì% <¾µAGΰöhÍÚ|â%¡OQê&W'0^ÞÂ×]ì¶Åu`Hãú¼©S%öÁ2$ïÔÐìqÇç°9µ¸5CðÐX¥ø1;Ålô.>Oþ·Q´Í0r/"I [ï¼×Þf*�ôF+,î ¡ @ñçbpOж`ÀãJÐ0Áä¸RÝ¥a¾gój¢kqgò^¤ôÁJùçovb>ÜVwÁªQÏ%,Í7ëß#ÍDØãÑñl}yª¦¢bê¥O«*\zD¹{¥ÒpcyJÖz¼"OãMnphÉz^sÁS&²¡¸ªE¨ßÊ <È=\Ǭ&â©ëXö> +á*äoiSÑEÑ{ñ©²!OÅ9 ~§Å¨ð9·BT¤hHvÅ,å¦JµÁü,櫼 ÉññukçEÁqM'xÓcÁbïgßæ"gD'ÛE3 Îlo¥ãf¿hûëoÌø±Ë;Ë{·~fMéö¬9ß ëÆúµKE°Ò*àg¶ðÂ:_L@¥]wö; -²-_-8Q ^¹®*!ܬ ²#Û\×óæHî©ÝË8FY쫦'`ôÎÌI=¢ K÷ÞÙÊÕ¡¶Zd ΢l$ÙYoø!R4#ÎÂìV3;]E:Jï 콯Ósaaïd±:*K32ù§¶ðW¢ýè /1ï·Oïi¸§Ë÷mVqtBH»N'gxüqû.»¯Upe]}^§jÓÎc|¹pĽ s¨ï×Ñ£ +/ãã&z +}åYQkNô.1# Îî®PÀwO¿½ ÉÈoýZ)ì5 +4{HXR"véLll6-:6S.'|ó3á$ÊØ~T½OnG&U¿ /ëcòùßîÿüÄãûhÞÔDøÿí3Æ%hÒö(âfn=;6_Ü6È£<A*Å ¨hBÔ¢hûHª-º·ÑC|ÓWdËË[Sí-Jò=/üO:×-?#»Ñ²¨¤Ëö½kÓ>sïô)SðA»g'î}qÄOØÿî|¡õ_(ÄÂBIP#%E(W£×KO2ZËKî T¢m¹üà(i¸0¯óÙ|÷½1+úRS?»(Ü94Ò´9ExÕÞ YÂÿ!@ÕÀß!õ[wûÓekøD¯iÿÅË49çÌâ¨:@h ?¤âB_²NÌ<î> Xݵ LÑx.m²IPÕ@«ï0ɦkØðÎyî¨;õ¼¦B§çÍ#ôb¸{câ#_7;nþ"ßbAë¸Ñ Ç8'vÀXgÍòòJ§'# r {*½º÷Ȩ Hi-U;LýXÖyrìRìκM(ãüÄz'AÎ˧xÊ[gª?a®yVÿüÐ:5ÑKú,Keâg·¢íSè°Ûë¾àhb½¸ qäFsõJ[s8µ²F"ïÊRfà= ]MR«<{fµéZóIpLHc`g¡ú¨÷Kí!tøÞtòVvÚç ÉåVçR"ÚÔé¥u1¹|2ÆZÎÑ}[U½ö (¤OlöÀà%Ñýµõ¸Cï¢L2Ô<Ò¡ØÿfÙc_=üçÊ/©ta B.íþÇÙôýl[íæ¯fºÉ¢<H.·$fqô)ºüÖ¼Vófp¸ÊQé½ó] s[ 6Ø)yÿhÚØj¦%uÊá5m¯;¹Äa+ÃfMOÞ&óóSô$öÛúR8Uþ^óp¹ 9hñq¿fB{T'¡·?bê.Ø.ÇWtò>µ"p<N? +h,ÂÚ?qT¾Úþa¢tøvvÎë£zgòZ°ðW®×ßFî׫Ú'sÀJ«X¹Ñþç :qÌ~í?§[¨¡Ùïü*[üþ,{Ð_=CSÇÞ<wZ9¤ñóU~äò]OEÓQßnÙØ�¾ +>)ïT¯Ó'5E +Y|}KîóÕôëÌt/§okÙíÐe3>Ê*¬ÆUø° ¥VVf~ÍòäÕ|íëUsë½{â;ÉôtÄÂîgñ³¢«¼´(I*N9ÒgRШÍhyºøKLeÏh úU³Jô)ÓH@(øe+ÀÈÖ2;mMê i±iue/ñÏ<Göucýªiýdc3âǸγ¸gåg£d»mØÃ[9U9e<Æ\gïÜ£À§X_¼<û :Qq ¶Zþ Ùà ý(³^GrÚl¯ñAãºXRuÜS>ÍOQü¹#ÅÖ¨Ççémâ®wÕKHQ°[=@ÕK§3ïÁ@?L±*È®ÌQªP:òÎ"®.Õ§û\Á· �ÑNëºÿ'Ýã<ú¡ão6Ìn'¦Ð×ÀØ$¢ß.®vÒa`3\GðؤÛel²ñFNÑÒ¼÷÷ÇÏ>à¢ð߯* ++* 2ÑGlé öc|GH/¿NµÐ6i´wórU9®¹ù¯,Ý{øJ rìÌÁÈ}MuSÏû©Mû}d?MÛ�3!ÚeÅ»Ár½¤T'<e(®iÃ7éÍû*]®òÁéJ_¨ñ5æùvËùÚܧ®:¯ûÆ Ô³oÄ 1T¡úx ¯/ñÞí2ÛIÞOcªI»@ -y$ù¢ÍÿiÕMl»íØAZ¯ßSEeKýøÃmBcß¾>ð¥,|dUB#ÜP$áÙhd mX>Iû¯uâݰ#ìÌï#j7_>äÛA9jv}A¶]×ñdúê)´r®6?ì.áèAûLØÒ wÒA£»O߯íÂSE²cÁ¬±ë{¶ =ð{ß·Ñ |,Ü×¹Ôy®²yWoÉeh?ÂaìÌMDjÄ,Ä~CÔG®ãïÓiLêÐ ¶#2ÍV2>Î:ó«âd £ø>ÙSÏS3C6u +2GuCbz{|¾,H§vD§ÏLIéÀâ;U<Ü!ãxU»ªMª»û ,pôQßÍ,Â=]4¥r6¸¤1<ÔÑÉÎdjY5°;·£åht¶Í¡Èúî°ÑÊÖD(|"4kP;ïI§u'n£C-󬏿9·ýµôñScÞ¥ÉÀÄáíwÍdË ð!PÖd¼w òÙ° Ø_¹É»,^.É$®7ºäE¹óoþÒÍãçûàR 1 :CÊ(Á×Í©45èöJE}ßù.(vØÈþËBÙ÷"CÆâó$ÖI¸æó¬÷2È7$¼Ùa_nYWá¿4Ì|À¯Ì74«ðÂ?8Ùå_4+óÍÐÿá6¯ç@«çzóÊ?+ýCtJ?+ôD«ñÂ? oD«ùv éêüÉw Þ½@ ¹&úÆõC¯(/ß\Þ±^yfõÍÓ o4ÿÀºÔ}uC¯1ßhßl;òL£o°tæ¯Ü¥ý~ßÚÚíhGWznww'$w zÊ]ÌÃ÷©é÷ÎH ðÛ´OË·ýÖÚ²mÛV¼æÚîmS±&ãIùÀG[ݶ(Ýõbf¢smùEóÅ(P(`"ñ§=@fN×ÊOÅbC!ÆiÐÄ "F)¾u¾sÍpþr0Ov×̪}ûQ¹)ä!çf>²Í`*Ìx÷ +'çèY¦]9Vj Zµ ÓôÊÅÓþ+M¡mUÛ¬»ðýâ +[ßOZ·u{»½íçÙ®}É +3ô/ðV¬)UnLùj+]9غT9H¦ò1;pï£x$×S}úv7sr¬¤)§µî%Å ÚÏõ]v¸gà0×_îÕ¾9{7¨écEìH¾Ô×§fÊ@¡fý´|Ú¥ê+¶ · 2T,T¿Q=ܰûJ³Vî60 ì7µ}Åçmy×FÍU©ðܶÇH¬ JéK37ª¼Ù¶# ©LkÏÊMV ÈI +^Ë¢ãÇ-3¤ î¸zaW}÷D)¤äÔDHÝö}R°IHãQX42RfÞ-µ
