-
Notifications
You must be signed in to change notification settings - Fork 336
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
base: main
Are you sure you want to change the base?
Conversation
Please help to review this PR, thanks. |
tempDir + HIVE_METASTORE_CLIENT_KEYTAB), | ||
configuration); | ||
|
||
kerberosClient.login(tempDir + HIVE_METASTORE_CLIENT_KEYTAB); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Could you add the document? |
The document about how to use Spark to access Iceberg rest with Kerberized Hive backend? |
@yuqi1129 please move forward this PR, thanks. |
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.