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

Beeline config location path is assembled incorrectly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 4.0.0
    • Component/s: Beeline
    • Labels:

      Description

      Checking the code in

      https://github.com/apache/hive/blob/branch-3/beeline/src/java/org/apache/hive/beeline/hs2connection/UserHS2ConnectionFileParser.java
      or in
      https://github.com/apache/hive/blob/branch-3/beeline/src/java/org/apache/hive/beeline/hs2connection/BeelineSiteParser.java
      I see

      locations.add(ETC_HIVE_CONF_LOCATION + DEFAULT_BEELINE_SITE_FILE_NAME);

      whee file separator shall be used:

      locations.add(ETC_HIVE_CONF_LOCATION + File.separator + DEFAULT_BEELINE_SITE_FILE_NAME);

      Due to this, BeeLine cannot use configuration in case if this would be the only way.

      In my hadoop-3 setup, the locations list contains the following:

      /home/myuser/.beeline/beeline-site.xml
      /etc/hive/confbeeline-site.xml
      

        Attachments

        1. HIVE-20088_001.patch
          1 kB
          Denes Bodo
        2. HIVE-20088_002.patch
          5 kB
          Denes Bodo
        3. HIVE-20088_002-2.patch
          5 kB
          Denes Bodo

          Activity

            People

            • Assignee:
              dionusos Denes Bodo
              Reporter:
              dionusos Denes Bodo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: