Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs committed Sep 29, 2024
1 parent 742c48f commit 7c87a26
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,23 @@ import groovyjarjarantlr4.v4.codegen.model.ExceptionClause
// under the License.

import org.junit.Assert;

import java.net.Socket
suite("test_two_hive_kerberos", "p0,external,kerberos,external_docker,external_docker_kerberos") {
def kdcServers = [
[host: 'hadoop-master', port: 88],
[host: 'hadoop-master-2', port: 88],
[host: 'hadoop-master', port: 89]
]

kdcServers.each { server ->
try {
def socket = new Socket(server.host, server.port)
socket.close()
println "KDC server at ${server.host}:${server.port} is reachable"
} catch (Exception e) {
println "Failed to reach KDC server at ${server.host}:${server.port}: ${e.message}"
}
}
String enabled = context.config.otherConfigs.get("enableKerberosTest")
if (enabled != null && enabled.equalsIgnoreCase("true")) {
String hms_catalog_name = "test_two_hive_kerberos"
Expand Down

0 comments on commit 7c87a26

Please sign in to comment.