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

Beeline should not prompt for hive user and password when authentication is NONE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Beeline
    • None

    Description

      Beeline - without adding the jdbc url - prompts for username and password in case hive.server2.authentication=NONE, which is possibly pointless and can be misleading for users as any input is accepted.

      In addition, Sqoop has dropped hive cli recently in favor of beeline and if there is no authentication set in Hive, Sqoop fails to connect as the process stops waiting for the user/password input.

      I think it would be nice to check the auth type "NONE" before reading unused inputs from the console before this point:
      https://github.com/apache/hive/blob/master/beeline/src/java/org/apache/hive/beeline/Commands.java#L1641

      Attachments

        1. HIVE-22355.5.patch
          6 kB
          Mate Juhasz
        2. HIVE-22355.4.patch
          6 kB
          Mate Juhasz
        3. HIVE-22355.3.patch
          4 kB
          Mate Juhasz
        4. HIVE-22355.2.patch
          6 kB
          Mate Juhasz
        5. HIVE-22355.1.patch
          2 kB
          Mate Juhasz

        Activity

          People

            matijhs Mate Juhasz
            matijhs Mate Juhasz
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: