commit 0bb05f97ede6fdfa192123a16cea5893c9f9772e Author: Vihang Karajgaonkar Date: Tue May 24 11:53:13 2016 -0700 HIVE-13797: Provide a connection string example in beeline diff --git a/beeline/src/main/resources/BeeLine.properties b/beeline/src/main/resources/BeeLine.properties index 16f23a8999670aac8c7c07bb90f895501be47ead..e940a7d065d650702f59a142d80a9a325f5c521b 100644 --- a/beeline/src/main/resources/BeeLine.properties +++ b/beeline/src/main/resources/BeeLine.properties @@ -188,6 +188,16 @@ cmd-usage: Usage: java org.apache.hive.cli.beeline.BeeLine \n \ \ --addlocaldrivername=DRIVERNAME Add drvier name needs to be supported in the beeline client side\n \ \ --showConnectedUrl=[true/false] Prompt HiveServer2's URI to which this beeline connected.\n \ \ Only works for HiveServer2 cluster mode.\n \ -\ --help display this message - - +\ --help display this message\n \ +\n \ +\ Example:\n \ +\ 1. Connect using simple authentication to HiveServer2 on localhost:10000\n \ +\ $ beeline -u jdbc:hive2://localhost:10000 username password\n\n \ +\ 2. Connect using simple authentication to HiveServer2 on hs.local:10000 using -n for username and -p for password\n \ +\ $ beeline -n username -p password -u jdbc:hive2://hs2.local:10012\n\n \ +\ 3. Connect using Kerberos authentication with hive/localhost@mydomain.com as HiveServer2 principal\n \ +\ $ beeline -u "jdbc:hive2://hs2.local:10013/default;principal=hive/localhost@mydomain.com\n\n \ +\ 4. Connect using SSL connection to HiveServer2 on localhost at 10000\n \ +\ $ beeline jdbc:hive2://localhost:10000/default;ssl=true;sslTrustStore=/usr/local/truststore;trustStorePassword=mytruststorepassword\n\n \ +\ 5. Connect using LDAP authentication\n \ +\ $ beeline -u jdbc:hive2://hs2.local:10013/default \n \