You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by jo...@apache.org on 2021/09/24 11:25:11 UTC
[incubator-heron] branch master updated: Fix heron-downloader
cannot load the jar package correctly (#3709)
This is an automated email from the ASF dual-hosted git repository.
joshfischer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to refs/heads/master by this push:
new e5a6858 Fix heron-downloader cannot load the jar package correctly (#3709)
e5a6858 is described below
commit e5a685862ec9693c87cb168c2a36dcbc77f58294
Author: zhangshaoning <32...@users.noreply.github.com>
AuthorDate: Fri Sep 24 19:25:01 2021 +0800
Fix heron-downloader cannot load the jar package correctly (#3709)
1. Install heron in the linux system to the /usr/lib/heron directory
2. Create symbolic links of several executable files in heron/bin to the /usr/bin directory
3. Try to call the heron* program separately, and the heron-downloader program fails to load the jar package correctly, and other programs are normal
---
heron/downloaders/src/shell/heron-downloader.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/heron/downloaders/src/shell/heron-downloader.sh b/heron/downloaders/src/shell/heron-downloader.sh
index 8734037..b46e77d 100755
--- a/heron/downloaders/src/shell/heron-downloader.sh
+++ b/heron/downloaders/src/shell/heron-downloader.sh
@@ -16,7 +16,11 @@
# specific language governing permissions and limitations
# under the License.
-BINDIR=$(dirname "$0")
+LINK=$(readlink ${0})
+if [ -z "$LINK" ]; then
+ LINK=$0
+fi
+BINDIR=$(dirname ${LINK})
HERON_CORE=$(dirname ${BINDIR})
HERON_DOWNLOADER_JAR=${HERON_CORE}/lib/downloaders/heron-downloader.jar