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

Adding a timeout connection parameter for JDBC

    XMLWordPrintableJSON

Details

    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

              jshmchenxi Xi Chen
              nemon Nemon Lou
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m