[ 
https://issues.apache.org/jira/browse/HIVE-26330?focusedWorklogId=784534&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-784534
 ]

ASF GitHub Bot logged work on HIVE-26330:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Jun/22 10:53
            Start Date: 24/Jun/22 10:53
    Worklog Time Spent: 10m 
      Work Description: AdobeStu commented on PR #3371:
URL: https://github.com/apache/hive/pull/3371#issuecomment-1165455855

   > Could you please describe the problem a bit more?
   > 
   > I am not entirely sure, but I think the issue you mention is that the user 
used `url1` for the uri as a connection string in BeeLine, and the prompt shows 
a different uri instead?
   
   Exactly. A zookeeper connection url will be split by ';' and get its 
substring from the first 45 characters. For example:
   
   we use:
   `!connect 
jdbc:hive2://host1:2181,host2:2181,host3:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;
   
   then we may get:
   `0: jdbc:hive2://host1:2181>`
   
   But actually, we could connect another host and different port like 
host2:10000.
   I believe that this substring aims to help user know which host we has 
connected, so I changed it.




Issue Time Tracking
-------------------

    Worklog Id:     (was: 784534)
    Time Spent: 1h  (was: 50m)

> Beeline client cannot get correct connection url in hive connection using 
> zookeeper
> -----------------------------------------------------------------------------------
>
>                 Key: HIVE-26330
>                 URL: https://issues.apache.org/jira/browse/HIVE-26330
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>            Reporter: Finch X
>            Priority: Critical
>              Labels: pull-request-available
>         Attachments: image-2022-06-15-14-12-48-739.png
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Like the following picture:
> !image-2022-06-15-14-12-48-739.png!
> my connection string:
> !connect 
> jdbc:hive2://ip1:port,ip2:port,ip3:port/default;principal=xxx;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to