You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by sp...@apache.org on 2016/05/25 21:29:43 UTC

hive git commit: HIVE-13797: Provide a connection string example in beeline (Vihang Karajgaonkar, reviewed Lefty Leverenz and Sergio Pena)

Repository: hive
Updated Branches:
  refs/heads/master dee455229 -> 3a2a3e1f9


HIVE-13797: Provide a connection string example in beeline (Vihang Karajgaonkar, reviewed Lefty Leverenz and Sergio Pena)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/3a2a3e1f
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/3a2a3e1f
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/3a2a3e1f

Branch: refs/heads/master
Commit: 3a2a3e1f940e68acdf4c8d38d0813e6515a67059
Parents: dee4552
Author: Vihang Karajgaonkar <vi...@cloudera.com>
Authored: Wed May 25 16:28:22 2016 -0500
Committer: Sergio Pena <se...@cloudera.com>
Committed: Wed May 25 16:28:22 2016 -0500

----------------------------------------------------------------------
 beeline/src/main/resources/BeeLine.properties | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/3a2a3e1f/beeline/src/main/resources/BeeLine.properties
----------------------------------------------------------------------
diff --git a/beeline/src/main/resources/BeeLine.properties b/beeline/src/main/resources/BeeLine.properties
index 16f23a8..e940a7d 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 <ldap-username> <ldap-password>\n \