diff --git a/docs/sql-distributed-sql-engine.md b/docs/sql-distributed-sql-engine.md index 734723f8c6235..ae8fd9c7211bd 100644 --- a/docs/sql-distributed-sql-engine.md +++ b/docs/sql-distributed-sql-engine.md @@ -83,7 +83,7 @@ Use the following setting to enable HTTP mode as system property or in `hive-sit To test, use beeline to connect to the JDBC/ODBC server in http mode with: - beeline> !connect jdbc:hive2://:/?hive.server2.transport.mode=http;hive.server2.thrift.http.path= + 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). @@ -94,4 +94,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) \ No newline at end of file +For details, please refer to [Spark SQL CLI](sql-distributed-sql-engine-spark-sql-cli.html) diff --git a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala index 3ccbd23b71c98..4575549005f33 100644 --- a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala +++ b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala @@ -1430,9 +1430,9 @@ abstract class HiveThriftServer2TestBase extends SparkFunSuite with BeforeAndAft protected def jdbcUri(database: String = "default"): String = if (mode == ServerMode.http) { s"""jdbc:hive2://$localhost:$serverPort/ - |$database? - |hive.server2.transport.mode=http; - |hive.server2.thrift.http.path=cliservice; + |$database; + |transportMode=http; + |httpPath=cliservice;? |${hiveConfList}#${hiveVarList} """.stripMargin.split("\n").mkString.trim } else {