Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/3946#discussion_r22643231
--- Diff:
sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suite.scala
---
@@ -70,6 +73,34 @@ class HiveThriftServer2Suite extends FunSuite with
Logging {
port
}
--- End diff --
`randomListeningPort` needs to be replaced by something like this:
```scala
def randomListeningPorts(n: Int) = {
val sockets = Array.fill(n)(new ServerSocket(0))
val ports = sockets.map(_.getLocalPort)
sockets.foreach(_.close())
ports
}
```
Because now we need to assign two ports (server and UI).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]