Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9848

readlink -f is GNU coreutils only (used in bin/hive)

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • Clients
    • None
    • Prevent GNU style readlink -f from being invoked unnecessarily

    Description

        bin=`dirname "$0"`
        # many hadoop installs are in dir/{spark,hive,hadoop,..}
        sparkHome=$(readlink -f $bin/../../spark)
      

      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.

      Attachments

        1. HIVE-9848.1.patch
          0.5 kB
          Gopal Vijayaraghavan

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gopalv Gopal Vijayaraghavan Assign to me
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment