2022-10-20 10:43:59,633 ERROR org.apache.hadoop.hdfs.server.namenode.FSEditLog: Error: starting log segment 946759 failed for (journal JournalAndStream(mgr=FileJournalManager(root=/data/hadoop/hdfs/namenode), stream=null))
java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
at org.apache.hadoop.hdfs.server.namenode.EditLogFileOutputStream.<clinit>(EditLogFileOutputStream.java:59)
at org.apache.hadoop.hdfs.server.namenode.FileJournalManager.startLogSegment(FileJournalManager.java:125)
at org.apache.hadoop.hdfs.server.namenode.JournalSet$JournalAndStream.startLogSegment(JournalSet.java:95)
at org.apache.hadoop.hdfs.server.namenode.JournalSet$1.apply(JournalSet.java:217)
at org.apache.hadoop.hdfs.server.namenode.JournalSet.mapJournalsAndReportErrors(JournalSet.java:392)
at org.apache.hadoop.hdfs.server.namenode.JournalSet.startLogSegment(JournalSet.java:214)
at org.apache.hadoop.hdfs.server.namenode.FSEditLog.startLogSegmen