Hive authentication by way of illustration

 

When accessing the database through JDBC Hive manner, by "AuthMech" set in the connection parameters to different values ​​using different authentication manner, the connection string is given examples of various authentication manner as follows

  • Authentication without using: property "AuthMech" in the connection parameter to "0"

    Example connection string:

    jdbc:hive2://IPAddress:Port;AuthMech=0
  • Use Kerbors authentication: property "AuthMech" in the connection parameter is "1"

    Example connection string:

    jdbc:hive2://IPAddress:Port;AuthMech=1;KrbRealm=EXAMPLE.COM;KrbHostFQDN=hs2.example.com;KrbServiceName=hive
  • Use Authentication Username: property "AuthMech" in the connection parameter is "2"

    Example connection string:

    jdbc:hive2://IPAddress:Port;AuthMech=2;UID=hs2
  • User name and password authentication: property "AuthMech" in the connection parameter is "3"

    Example connection string:

    jdbc:hive2://IPAddress:Port;AuthMech=3;UID=hs2;PWD=****
  • Username and password authentication using Secure Sockets Layer: "AuthMech" attribute provided in the connection parameter is "4"

    Example connection string:

    jdbc:hive2://IPAddress:Port;AuthMech=4;SSLKeyStore=C:\\Users\\bsmith\\Desktop\\Keystore.jks;SSLKeyStorePwd=****;UID=hs2;PWD=****
Published 227 original articles · won praise 94 · views 540 000 +

Guess you like

Origin blog.csdn.net/wiborgite/article/details/96311053