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

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

    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

          People

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

            Dates

              Created:
              Updated:
              Resolved: