protected boolean requestIsAborted(final HttpRequest request) {
        HttpRequest req = request;
        if (request instanceof RequestWrapper) { // does not forward request to original
          req = ((RequestWrapper) request).getOriginal();
        }
        return (req instanceof HttpUriRequest && ((HttpUriRequest)req).isAborted());
      }
Add an interceptor to pass username/password in the header.
In https mode, the entire information is encrypted
jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java