TiSpark reports java.lang.NoSuchMethodError: 'sun.misc.Cleaner sun.nio.ch.DirectBuffer.cleaner()

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: Tispark报java.lang.NoSuchMethodError: 'sun.misc.Cleaner sun.nio.ch.DirectBuffer.cleaner()

| username: juecong

[TiDB Usage Environment] Production Environment
[Spark Version] 3.2.3
[TiDB Version] 7.1.1
[Spark-submit Script] Added the JDK directory

[Encountered Problem: Problem Phenomenon and Impact]
When running in the k8s window, the task startup reports java.lang.NoSuchMethodError: 'sun.misc.Cleaner sun.nio.ch.DirectBuffer.cleaner()

However, other tasks are normal.

| username: Jellybean | Original post link

Check whether the package is correctly imported or if the versions of the package and the machine are consistent.

| username: ShawnYan | Original post link

Is there a conflict with the referenced packages?

Please copy the screenshot of the log, you can mask the IP.

| username: ShawnYan | Original post link

Does this environment have any other JDK/JRE? Can you confirm which Java version it is?

| username: zxgaa | Original post link

First, confirm the Java version.

| username: juecong | Original post link

After configuring the JDK directory, it worked fine.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.