Skip to content

Conversation

@CuiYanxiang
Copy link
Contributor

@CuiYanxiang CuiYanxiang commented Nov 15, 2024

What changes were proposed in this pull request?

When kerberos is enabled and SparkThriftServer is started, the service delivery parameters keytab and principal are created when hadoop authentication errors occur

saslServer = ShimLoader.getHadoopThriftAuthBridge().createServer(principal, keytab);

public Server createServer(String keytabFile, String principalConf) throws TTransportException { return new Server(keytabFile, principalConf); }

Why are the changes needed?

Failed to start SparkThriftServer when kerberos is true

Does this PR introduce any user-facing change?

No

How was this patch tested?

verified

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the SQL label Nov 15, 2024
@CuiYanxiang CuiYanxiang changed the title [SPARK-50312][SQL] SparkThriftServer createServer parameter passing e… [SPARK-50312][SQL] SparkThriftServer createServer parameter passing error when kerberos is true Nov 15, 2024
@CuiYanxiang
Copy link
Contributor Author

cc @cloud-fan

@yaooqinn
Copy link
Member

Nice catch. (I'm a bit surprised that such a long-term bug was present.)

@yaooqinn yaooqinn closed this in 3237885 Nov 15, 2024
yaooqinn pushed a commit that referenced this pull request Nov 15, 2024
…rror when kerberos is true

### What changes were proposed in this pull request?

When kerberos is enabled and SparkThriftServer is started, the service delivery parameters keytab and principal are created when hadoop authentication errors occur

`saslServer = ShimLoader.getHadoopThriftAuthBridge().createServer(principal, keytab);`

`public Server createServer(String keytabFile, String principalConf) throws TTransportException {
     return new Server(keytabFile, principalConf);
 }`

### Why are the changes needed?

Failed to start SparkThriftServer when kerberos is true

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

verified

### Was this patch authored or co-authored using generative AI tooling?

No

Closes #48855 from CuiYanxiang/SPARK-50312.

Authored-by: cuiyanxiang <kaer@startdt.com>
Signed-off-by: Kent Yao <yao@apache.org>
(cherry picked from commit 3237885)
Signed-off-by: Kent Yao <yao@apache.org>
@yaooqinn
Copy link
Member

Merged to master and 3.5. Thank you @CuiYanxiang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants