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

Missing "/" or "/<dbname>" in hs2 jdbc uri switches mode to embedded mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • HiveServer2
    • None
    • patch available for review

    Description

      When the jdbc uri does not have a / or "/default" after the hostname:port, and the principal is specified, it ends up launching HS2 in embedded mode.

      This is because the parsing of uri in such case does not end up extracting the hostname.

      eg . "jdbc:hive2://<host>:<port>;principal=<>." results HS2 embedded mode getting used.
      "jdbc:hive2://<host>:<port>/;principal=<>" or "jdbc:hive2://<host>:<port>/default;principal=<>" results in it connecting to the standalone hive server 2.

      Attachments

        1. hive-4406.patch
          2 kB
          Anandha L Ranganathan

        Issue Links

          Activity

            People

              analog.sony Anandha L Ranganathan
              thejas Thejas Nair
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: