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

Adding a timeout connection parameter for JDBC

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JDBC
    • Labels:
      None
    • Target Version/s:

      Description

      There are some timeout settings from server side:
      HIVE-4766
      HIVE-6679
      Adding a timeout connection parameter for JDBC is useful in some scenario:
      1,beeline (which can not set timeout manually)
      2,customize timeout for different connections (among hive or RDBs,which can not be done via DriverManager.setLoginTimeout())
      Just like postgresql,

      jdbc:postgresql://localhost/test?user=fred&password=secret&ssl=true&connectTimeout=0
      

      or mysql

      jdbc:mysql://xxx.xx.xxx.xxx:3306/database?connectTimeout=60000&socketTimeout=60000
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nemon Nemon Lou
              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: