Skip to content

Commit

Permalink
Fix heron-downloader cannot load the jar package correctly (apache#3709)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zhangshaoning1 authored and surahman committed Oct 30, 2021
1 parent 273fb35 commit a479e89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion heron/downloaders/src/shell/heron-downloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a479e89

Please sign in to comment.