diff options
author | Judy Nash <judynash@microsoft.com> | 2014-12-16 12:37:26 -0800 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-12-16 12:37:26 -0800 |
commit | 17688d14299f18a93591818ae5fef69e9dc20eb5 (patch) | |
tree | 1e14688745ff26dd427d229c78d0caf7d40de7ba /docs/sql-programming-guide.md | |
parent | d12c0711faa3d4333513fcbbbee4868bcb784a26 (diff) | |
download | spark-17688d14299f18a93591818ae5fef69e9dc20eb5.tar.gz spark-17688d14299f18a93591818ae5fef69e9dc20eb5.tar.bz2 spark-17688d14299f18a93591818ae5fef69e9dc20eb5.zip |
[SQL] SPARK-4700: Add HTTP protocol spark thrift server
Add HTTP protocol support and test cases to spark thrift server, so users can deploy thrift server in both TCP and http mode.
Author: Judy Nash <judynash@microsoft.com>
Author: judynash <judynash@microsoft.com>
Closes #3672 from judynash/master and squashes the following commits:
526315d [Judy Nash] correct spacing on startThriftServer method
31a6520 [Judy Nash] fix code style issues and update sql programming guide format issue
47bf87e [Judy Nash] modify withJdbcStatement method definition to meet less than 100 line length
2e9c11c [Judy Nash] add thrift server in http mode documentation on sql programming guide
1cbd305 [Judy Nash] Merge remote-tracking branch 'upstream/master'
2b1d312 [Judy Nash] updated http thrift server support based on feedback
377532c [judynash] add HTTP protocol spark thrift server
Diffstat (limited to 'docs/sql-programming-guide.md')
-rw-r--r-- | docs/sql-programming-guide.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md index be284fbe21..ad51b9cf41 100644 --- a/docs/sql-programming-guide.md +++ b/docs/sql-programming-guide.md @@ -938,6 +938,18 @@ Configuration of Hive is done by placing your `hive-site.xml` file in `conf/`. You may also use the beeline script that comes with Hive. +Thrift JDBC server also supports sending thrift RPC messages over HTTP transport. +Use the following setting to enable HTTP mode as system property or in `hive-site.xml` file in `conf/`: + + hive.server2.transport.mode - Set this to value: http + hive.server2.thrift.http.port - HTTP port number fo listen on; default is 10001 + hive.server2.http.endpoint - HTTP endpoint; default is cliservice + +To test, use beeline to connect to the JDBC/ODBC server in http mode with: + + beeline> !connect jdbc:hive2://<host>:<port>/<database>?hive.server2.transport.mode=http;hive.server2.thrift.http.path=<http_endpoint> + + ## Running the Spark SQL CLI The Spark SQL CLI is a convenient tool to run the Hive metastore service in local mode and execute |