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

hive CLI shell use of `dirname "$0"` prevents it from being linked from other directories

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

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      I tried making /usr/bin/hive a link to /usr/lib/hive-0.14/bin/hive . But the launch fails because:

      bin=`dirname "$0"`
      bin=`cd "$bin"; pwd`
      . "$bin"/hive-config.sh
      

      So I used a readlink -f first, to locate the proper script home, and then it works fine.

      Attachments

        Activity

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

          People

            Unassigned Unassigned Assign to me
            rusanu Remus Rusanu

            Dates

              Created:
              Updated:

              Slack

                Issue deployment