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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to