Skip to content

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