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

beeline - update command printing in verbose mode

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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.2.patch
          3 kB
          Daniel Dai
        2. HIVE-12282.1.patch
          3 kB
          Daniel Dai

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment