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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: HiveServer2
    • Labels:
      None
    • Release Note:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: