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

Beeline changes its prompt to reflect successful database connection even after failing to connect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: None
    • Labels:
      None

      Description

      Beeline changes its prompt to reflect successful database connection even after failing to connect, which is misleading.

      [asingh@e1118 tpcds]$ beeline -u "jdbc:hive2://abclocalhost:10000 hive"
      scan complete in 5ms
      Connecting to jdbc:hive2://abclocalhost:10000
      Error: Invalid URL: jdbc:hive2://abclocalhost:10000 (state=08S01,code=0)
      Beeline version 0.12.0-cdh5.1.0-SNAPSHOT by Apache Hive
      0: jdbc:hive2://abclocalhost:10000> show tables;
      No current connection
      

        Attachments

        1. HIVE-7345.patch
          2 kB
          Ashish Singh
        2. HIVE-7345.2.patch
          2 kB
          Ashish Singh

          Activity

            People

            • Assignee:
              singhashish Ashish Singh
              Reporter:
              singhashish Ashish Singh
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: