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

Hive JDBC Driver connection fail when no default database passed in the connection string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.13.0
    • HiveServer2
    • None

    Description

      Connection fails with connection url "jdbc:hive2://hostname:port" without dbname after Hive-4256. There is a check in jdbc/HiveConnection.java :

      if(dbName!=null)
        stmt.execute("use "+dbName);
      

      But looks like dbName is "" instead of null.

      Attachments

        1. HIVE-6180.2.patch
          5 kB
          Prasad Suresh Mujumdar
        2. HIVE-6180.1.patch
          2 kB
          Prasad Suresh Mujumdar

        Issue Links

          Activity

            People

              prasadm Prasad Suresh Mujumdar
              sravya Sravya Tirukkovalur
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: