Skip to content

Commit

Permalink
Avoid using deprecated Hive JDBC params.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Sep 13, 2024
1 parent 08a26bb commit 890a8d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/sql-distributed-sql-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -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://<host>:<port>/<database>?hive.server2.transport.mode=http;hive.server2.thrift.http.path=<http_endpoint>
beeline> !connect jdbc:hive2://<host>:<port>/<database>?transportMode=http;httpPath=<http_endpoint>

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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1431,8 +1431,8 @@ 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;
|transportMode=http;
|httpPath=cliservice;
|${hiveConfList}#${hiveVarList}
""".stripMargin.split("\n").mkString.trim
} else {
Expand Down

0 comments on commit 890a8d7

Please sign in to comment.