Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#5410] Improvement(iceberg-reset): Make IT IcebergRestKerberosHiveCatalogIT works in deploy mode. #5423

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yuqi1129
Copy link
Contributor

@yuqi1129 yuqi1129 commented Nov 1, 2024

What changes were proposed in this pull request?

Make IcebergRestKerberosHiveCatalogIT can run in deploy mode.

Why are the changes needed?

We need to make it work in both embedded and deploy mode.

Fix: #5410

Does this PR introduce any user-facing change?

N/A.

How was this patch tested?

Existing IT.

@yuqi1129 yuqi1129 self-assigned this Nov 1, 2024
@yuqi1129 yuqi1129 requested a review from FANNG1 November 1, 2024 07:15
@yuqi1129
Copy link
Contributor Author

yuqi1129 commented Nov 1, 2024

@FANNG1

Please help to review this PR, thanks.

tempDir + HIVE_METASTORE_CLIENT_KEYTAB),
configuration);

kerberosClient.login(tempDir + HIVE_METASTORE_CLIENT_KEYTAB);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid the normal user couldn't do kerberosClient.login in spark-sql or spark-shell, may be you could try add spark.kerberos.principal and spark.kerberos.keytab to spark config.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, let me optimized it.

// Login kerberos and use the users to execute the spark job.
try {
Configuration configuration = new Configuration();
configuration.set("hadoop.security.authentication", "kerberos");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please set all configurations in spark config.

Copy link
Contributor Author

@yuqi1129 yuqi1129 Nov 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is only for Kerberos login, it's not for spark.

@FANNG1
Copy link
Contributor

FANNG1 commented Nov 1, 2024

Could you add the document?

@yuqi1129
Copy link
Contributor Author

yuqi1129 commented Nov 3, 2024

Could you add the document?

The document about how to use Spark to access Iceberg rest with Kerberized Hive backend?

@jerryshao
Copy link
Contributor

@yuqi1129 please move forward this PR, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] Make IcebergRestKerberosHiveCatalogIT works in the deploy mode
3 participants