Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor things

...

Info
titleBeeline with NoSASL connection

If you'd like to connect via NOSASL mode, you must specify the authentication mode explicitly:

% bin/beeline
beeline> !connect jdbc:hive2://<host>:<port>/<db>;auth=noSasl hiveuser pass org.apache.hive.jdbc.HiveDriver

...

NOTE: If you don't have a "/" after the port number, the jdbc driver does not parse the hostname and ends up running HS2 in embedded mode . So if you are specifying a hostname, make sure you have a "/" or "/<dbname>" after the port number.

In the case of LDAP, CUSTOM or customer pass through PAM authentication, the client needs to pass the a valid user name and password to the JDBC connection API.

To use sasl.qop, add the following to the sessionconf part of your Hive

...

 JDBC hive connection string,

...

 e.g.
jdbc:hive://hostname/dbname;sasl.qop=auth-

...

int

For more information, see Setting Up HiveServer2.

...