[ https://issues.apache.org/jira/browse/HIVE-18963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16401462#comment-16401462 ]
Vihang Karajgaonkar commented on HIVE-18963: -------------------------------------------- {quote}I think we should have a way to specify the final jdbc url (including not just the host:port, but other connection/session/conf params). That would be a nice usability add on - what do you think? {quote} It does support connection params in the url using the xml file. Check [this|https://github.com/apache/hive/blob/master/beeline/src/test/org/apache/hive/beeline/hs2connection/TestUserHS2ConnectionFileParser.java#L101] test case for example. This test also has other examples of urls which can be supported using the xml file. Is this not want you are looking for here? {quote}We should also have a way to specify urls (let's call it named urls) for different HS2 services. For example, let's say there are 2 different versions of the service running on the cluster, the user can connect to a specific instance like this: {{beeline -c namedUrl}}. We can keep a default url as well which gets picked if no namedUrl switch is provided on command line. {quote} This would be a good improvement. I myself had this at the back of my mind but I never got around working on it. I think it would be a good addition. > JDBC: Provide an option to simplify beeline usage by supporting default and > named URL for beeline > ------------------------------------------------------------------------------------------------- > > Key: HIVE-18963 > URL: https://issues.apache.org/jira/browse/HIVE-18963 > Project: Hive > Issue Type: Bug > Components: Beeline > Reporter: Vaibhav Gumashta > Assignee: Vaibhav Gumashta > Priority: Major > > Currently, after opening Beeline CLI, the user needs to supply a connection > string to use the HS2 instance and set up the jdbc driver. Since we plan to > replace Hive CLI with Beeline in future (HIVE-10511), it will help the > usability if the user can simply type {{beeline}} and get start the hive > session. The jdbc url can be specified in a beeline-site.xml (which can > contain other named jdbc urls as well, and they can be accessed by something > like: {{beeline -c namedUrl}}. The use of beeline-site.xml can also be > potentially expanded later if needed. -- This message was sent by Atlassian JIRA (v7.6.3#76005)