From 7d0e409f626894afa2a28c9acdbbdfbc77fee28c Mon Sep 17 00:00:00 2001 From: Nicholas Chammas Date: Wed, 12 Aug 2026 10:51:21 -0400 Subject: [PATCH 1/3] mention stop-thriftserver.sh --- docs/sql-distributed-sql-engine.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/sql-distributed-sql-engine.md b/docs/sql-distributed-sql-engine.md index ae8fd9c7211bd..13332b9cc9fa0 100644 --- a/docs/sql-distributed-sql-engine.md +++ b/docs/sql-distributed-sql-engine.md @@ -40,23 +40,23 @@ specify Hive properties. You may run `./sbin/start-thriftserver.sh --help` for a all available options. By default, the server listens on localhost:10000. You may override this behaviour via either environment variables, i.e.: -{% highlight bash %} +```bash export HIVE_SERVER2_THRIFT_PORT= export HIVE_SERVER2_THRIFT_BIND_HOST= ./sbin/start-thriftserver.sh \ --master \ ... -{% endhighlight %} +``` or system properties: -{% highlight bash %} +```bash ./sbin/start-thriftserver.sh \ --hiveconf hive.server2.thrift.port= \ --hiveconf hive.server2.thrift.bind.host= \ --master ... -{% endhighlight %} +``` Now you can use beeline to test the Thrift JDBC/ODBC server: @@ -88,10 +88,14 @@ To test, use beeline to connect to the JDBC/ODBC server in http mode with: If you closed a session and do CTAS, you must set `fs.%s.impl.disable.cache` to true in `hive-site.xml`. See more details in [[SPARK-21067]](https://issues.apache.org/jira/browse/SPARK-21067). +To stop the Thrift JDBC/ODBC server, run: + + ./sbin/stop-thriftserver.sh + ## Running the Spark SQL CLI To use the Spark SQL command line interface (CLI) from the shell: ./bin/spark-sql - + For details, please refer to [Spark SQL CLI](sql-distributed-sql-engine-spark-sql-cli.html) From ff7806d1af3c7354a0726bd51ea5e28cacfde1e6 Mon Sep 17 00:00:00 2001 From: Nicholas Chammas Date: Wed, 12 Aug 2026 11:05:14 -0400 Subject: [PATCH 2/3] missing backslash --- docs/sql-distributed-sql-engine.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sql-distributed-sql-engine.md b/docs/sql-distributed-sql-engine.md index 13332b9cc9fa0..30aec7fd14ef7 100644 --- a/docs/sql-distributed-sql-engine.md +++ b/docs/sql-distributed-sql-engine.md @@ -54,7 +54,7 @@ or system properties: ./sbin/start-thriftserver.sh \ --hiveconf hive.server2.thrift.port= \ --hiveconf hive.server2.thrift.bind.host= \ - --master + --master \ ... ``` From d815e7d31bc824ddd807fac17b4b6a53cae23598 Mon Sep 17 00:00:00 2001 From: Nicholas Chammas Date: Wed, 12 Aug 2026 11:16:55 -0400 Subject: [PATCH 3/3] clarify use of fs..impl --- docs/sql-distributed-sql-engine.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/sql-distributed-sql-engine.md b/docs/sql-distributed-sql-engine.md index 30aec7fd14ef7..53fc8c1b5f77e 100644 --- a/docs/sql-distributed-sql-engine.md +++ b/docs/sql-distributed-sql-engine.md @@ -85,8 +85,11 @@ To test, use beeline to connect to the JDBC/ODBC server in http mode with: beeline> !connect jdbc:hive2://:/;transportMode=http;httpPath= -If you closed a session and do CTAS, you must set `fs.%s.impl.disable.cache` to true in `hive-site.xml`. -See more details in [[SPARK-21067]](https://issues.apache.org/jira/browse/SPARK-21067). +If you closed a session and do CTAS, you must set `fs..impl.disable.cache` to `true` in `hive-site.xml`. `` is the Hadoop filesystem you are using, like `hdfs`, `s3a`, etc. For example: + + fs.hdfs.impl.disable.cache=true + +See more details in [SPARK-21067](https://issues.apache.org/jira/browse/SPARK-21067). To stop the Thrift JDBC/ODBC server, run: @@ -98,4 +101,4 @@ To use the Spark SQL command line interface (CLI) from the shell: ./bin/spark-sql -For details, please refer to [Spark SQL CLI](sql-distributed-sql-engine-spark-sql-cli.html) +For details, please refer to [Spark SQL CLI](sql-distributed-sql-engine-spark-sql-cli.html).