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

beeline with USE_BEELINE_FOR_HIVE_CLI fails when trying to set hive.aux.jars.path

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Since HIVE-19385 it's possible to redirect bin/hive to beeline. This is not working as expected though, because in bin/hive we're setting hive.aux.jars.path. This leads to the following error:

      $ USE_BEELINE_FOR_HIVE_CLI=true hive
      
      ...
      Error: Could not open client transport for any of the Server URI's in ZooKeeper: Failed to open new session: java.lang.IllegalArgumentException: Cannot modify hive.aux.jars.path at runtime. It is not in list of params that are allowed to be modified at runtime (state=08S01,code=0)
      Beeline version 3.0.0 by Apache Hive
      beeline> 
      

      We already avoid setting hive.aux.jars.path when running beeline service but the USE_BEELINE_FOR_HIVE_CLI override happens after that.

      I'd suggest checking the value of USE_BEELINE_FOR_HIVE_CLI right after we've selected the service to run (cli/beeline/...) and override cli->beeline there.

        Attachments

        1. HIVE-19728.1.patch
          2 kB
          Daniel Voros

          Activity

            People

            • Assignee:
              dvoros Daniel Voros
              Reporter:
              dvoros Daniel Voros
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: