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

beeline - update command printing in verbose mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • Beeline
    • None
    • Reviewed

    Description

      In verbose mode, beeline prints the password used in commandline to STDERR.
      This is not a good security practice.

      Issue is in BeeLine.java code -

          if (url != null) {
            String com = "!connect "
                + url + " "
                + (user == null || user.length() == 0 ? "''" : user) + " "
                + (pass == null || pass.length() == 0 ? "''" : pass) + " "
                + (driver == null ? "" : driver);
            debug("issuing: " + com);
            dispatch(com);
          }
      
      

      Attachments

        1. HIVE-12282.1.patch
          3 kB
          Daniel Dai
        2. HIVE-12282.2.patch
          3 kB
          Daniel Dai

        Activity

          People

            daijy Daniel Dai
            daijy Daniel Dai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: