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 error caused by Jersey version mismatch on enabling webhdfs schema #18701

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

Conversation

iwasakims
Copy link

What changes are proposed in this pull request?

Fix the following error caused by mismatch of Jersey version between Alluxio and Hadoop when mounting HDFS by webhdfs:// schema (enabled by adding webhdfs:// and swebhdfs:// to alluxio.underfs.hdfs.prefixes).

java.lang.LinkageError: ClassCastException: attempting to castjar:file:/usr/lib/alluxio/assembly/server/target/alluxio-assembly-server-2.9.3-jar-with-dependencies.jar!/javax/ws/rs/ext/RuntimeDelegate.classtojar:file:/usr/lib/alluxio/lib/alluxio-underfs-hdfs-3.3.1-2.9.3.jar!/javax/ws/rs/ext/RuntimeDelegate.class
        at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:116)
        at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91)
        at javax.ws.rs.core.MediaType.<clinit>(MediaType.java:44)
        at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.jsonParse(WebHdfsFileSystem.java:482)
        at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$FsPathResponseRunner.getResponse(WebHdfsFileSystem.java:956)
        at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.runWithRetry(WebHdfsFileSystem.java:815)
        at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.access$100(WebHdfsFileSystem.java:637)
        at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner$1.run(WebHdfsFileSystem.java:675)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
        at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.run(WebHdfsFileSystem.java:671)
        at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getHdfsFileStatus(WebHdfsFileSystem.java:1104)
        at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getFileStatus(WebHdfsFileSystem.java:1115)
        at org.apache.hadoop.fs.FileSystem.isDirectory(FileSystem.java:1777)
        at alluxio.underfs.hdfs.HdfsUnderFileSystem.isDirectory(HdfsUnderFileSystem.java:500)
        at alluxio.underfs.UnderFileSystemWithLogging$31.call(UnderFileSystemWithLogging.java:712)
        at alluxio.underfs.UnderFileSystemWithLogging$31.call(UnderFileSystemWithLogging.java:709)
        at alluxio.underfs.UnderFileSystemWithLogging.call(UnderFileSystemWithLogging.java:1262)
        at alluxio.underfs.UnderFileSystemWithLogging.isDirectory(UnderFileSystemWithLogging.java:709)
        at alluxio.master.file.DefaultFileSystemMaster.prepareForMount(DefaultFileSystemMaster.java:3398)
        ...

Why are the changes needed?

webhdfs:// and swebhdfs:// need the same fix as #14950.

Does this PR introduce any user facing changes?

n/a

@alluxio-bot
Copy link
Contributor

Thank you for your pull request.
In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement (CLA).
It's all electronic and will take just a few minutes. Please download CLA form here, sign, and e-mail back to cla@alluxio.org

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.

3 participants