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

beeline - update command printing in verbose mode

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: Beeline
    • Labels:
      None
    • Hadoop Flags:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: