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

fix UnknownHostException when visit data with cfs protocol #5

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

Conversation

carrey-feng
Copy link

@carrey-feng carrey-feng commented Jul 5, 2024

It throw a UnknownHostException when I using spark to visit data with path like cfs://${volumnName}/xxx.
The exception is throwed at org.apache.hadoop.security.SecurityUtil.buildTokenService method
image

I think that token is not required when visit cubefs, We should refer to the implementation of S3AFileSystem. S3AFileSystem. getCanonicalServiceName

It works after I overwrite getCanonicalServiceName method.
image

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.

1 participant