-
Notifications
You must be signed in to change notification settings - Fork 350
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
[#3432] improvement(test): Add kerberos authentication IT for HDFS cluster #3435
Conversation
This PR depends on #3431 |
@jerryshao @qqqttt123 |
@yuqi1129 is this PR required, do you need to update this PR? |
I think so, this PR is just to test whether we can access a kerberized HDFS cluster successfully locally to verify the docker image, a complete e2e test is ongoing. |
...p/src/test/java/com/datastrato/gravitino/catalog/hadoop/integration/test/HDFSKerberosIT.java
Outdated
Show resolved
Hide resolved
...p/src/test/java/com/datastrato/gravitino/catalog/hadoop/integration/test/HDFSKerberosIT.java
Outdated
Show resolved
Hide resolved
...p/src/test/java/com/datastrato/gravitino/catalog/hadoop/integration/test/HDFSKerberosIT.java
Outdated
Show resolved
Hide resolved
@jerryshao |
() -> { | ||
try { | ||
FileSystem fs = FileSystem.get(conf); | ||
Path path = new Path("/"); |
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.
You need to create a file and check the file owner to see if it is expected.
If kerberos is enabled, the user should be "cli" from my understanding.
.withHostName("gravitino-ci-kerberos-hive") | ||
.withEnvVars( | ||
ImmutableMap.<String, String>builder() | ||
.put("HADOOP_USER_NAME", "datastrato") |
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 don't think it is needed, you can remove and take a try.
Please fix the style issues. |
done |
…uster (#3435) ### What changes were proposed in this pull request? Add test cases to test Kerberos authentication for the HDFS cluster. ### Why are the changes needed? To make code more robust. Fix: #3432 ### Does this PR introduce _any_ user-facing change? N/A. ### How was this patch tested? test cases.
…DFS cluster (apache#3435) ### What changes were proposed in this pull request? Add test cases to test Kerberos authentication for the HDFS cluster. ### Why are the changes needed? To make code more robust. Fix: apache#3432 ### Does this PR introduce _any_ user-facing change? N/A. ### How was this patch tested? test cases.
What changes were proposed in this pull request?
Add test cases to test Kerberos authentication for the HDFS cluster.
Why are the changes needed?
To make code more robust.
Fix: #3432
Does this PR introduce any user-facing change?
N/A.
How was this patch tested?
test cases.