[
https://issues.apache.org/jira/browse/HIVE-9848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14346392#comment-14346392
]
Prasanth Jayachandran commented on HIVE-9848:
---------------------------------------------
LGTM, +1
> readlink -f is GNU coreutils only (used in bin/hive)
> ----------------------------------------------------
>
> Key: HIVE-9848
> URL: https://issues.apache.org/jira/browse/HIVE-9848
> Project: Hive
> Issue Type: Bug
> Components: Clients
> Affects Versions: 1.2.0
> Reporter: Gopal V
> Assignee: Gopal V
> Priority: Trivial
> Attachments: HIVE-9848.1.patch
>
>
> {code}
> bin=`dirname "$0"`
> # many hadoop installs are in dir/{spark,hive,hadoop,..}
> sparkHome=$(readlink -f $bin/../../spark)
> {code}
> uses -f which means {{canonicalize}} in GNU coreutils and {{format}} in BSD
> coreutils.
> This needs a wrap-around {{test -e}} to prevent invocation against
> non-existent spark installs.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)