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

Beeline backward incompatible change

    XMLWordPrintableJSON

Details

    Description

      There is a backward incompatible change that's gone into beeline somehow. Previously, you could connect using the connection string:

      !connect jdbc:hive2://localhost:10000 <username> <password> org.apache.hive.jdbc.HiveDriver; 
      

      which isn't the case now:

      Beeline version 0.13.0 by Apache Hive
      beeline>  !connect jdbc:hive2://localhost:10000 vgumashta vgumashta org.apache.hive.jdbc.HiveDriver; 
      Connecting to jdbc:hive2://localhost:10000
      org/apache/hive/jdbc/HiveDriver;
      0: jdbc:hive2://localhost:10000> show tables;
      org/apache/hive/jdbc/HiveDriver;
      No current connection
      

      However, removing either username or password, lets you log in:

      Beeline version 0.13.0 by Apache Hive
      beeline>  !connect jdbc:hive2://localhost:10000 vgumashta  org.apache.hive.jdbc.HiveDriver;          
      scan complete in 3ms
      Connecting to jdbc:hive2://localhost:10000
      Connected to: Apache Hive (version 0.13.0)
      Driver: Hive JDBC (version 0.13.0)
      Transaction isolation: TRANSACTION_REPEATABLE_READ
      0: jdbc:hive2://localhost:10000> show tables;
      +-------------------------+
      |        tab_name         |
      +-------------------------+
      | customer                |
      | customer_address        |
      | customer_demographics   |
      | date_dim                |
      | household_demographics  |
      | item                    |
      | promotion               |
      | store                   |
      | store_returns           |
      | store_sales             |
      | time_dim                |
      +-------------------------+
      11 rows selected (0.111 seconds)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vgumashta Vaibhav Gumashta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: