Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2572

Fix parsing 'hive_home' error in 'find-hive-dependency.sh'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v2.0.0
    • v2.1.0
    • Others
    • Patch, Important

    Description

      Kylin failed to start because of parsing 'hive_home' error in 'find-hive-dependency.sh'
      The error log is as following:
      Couldn't locate hcatalog installation, please make sure it is installed and set HCAT_HOME to the path.

      In my environment, the HIVE_HOME is /opt/parcels/lib/mr/hive-2.1.0 and the path contains '/lib/'
      The code in find-hive-dependency.sh:
      75 hive_home=`echo $hive_exec_path | awk -F '/lib/' '

      {print $1}

      '`
      Using '/lib/' as a delimiter, the result is that getting the wrong hive_home : '/opt/parcels'

      Attachments

        Activity

          People

            peng.jianhua peng.jianhua
            peng.jianhua peng.jianhua
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: