diff --git a/docs/sql-distributed-sql-engine.md b/docs/sql-distributed-sql-engine.md index ae8fd9c7211b..53fc8c1b5f77 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 + --master \ ... -{% endhighlight %} +``` Now you can use beeline to test the Thrift JDBC/ODBC server: @@ -85,13 +85,20 @@ 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: + + ./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) + +For details, please refer to [Spark SQL CLI](sql-distributed-sql-engine-spark-sql-cli.html).