Skip to content

[Bug]: Incompatible with Java 11 and above: Unexpected version format: 11.0.22 #128

Description

@yuanoOo

Describe the bug

Incompatible with Java 11 and above.

Caused by: java.lang.ExceptionInInitializerError
	at org.apache.hadoop.hbase.client.Mutation.<clinit>(Mutation.java:62)
	at com.oceanbase.spark.HBaseRelation.$anonfun$flush$1(HBaseRelation.scala:85)
	at com.oceanbase.spark.HBaseRelation.$anonfun$flush$1$adapted(HBaseRelation.scala:81)
	at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
	at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
	at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
	at com.oceanbase.spark.HBaseRelation.flush(HBaseRelation.scala:81)
	at com.oceanbase.spark.HBaseRelation.$anonfun$insert$1(HBaseRelation.scala:73)
	at com.oceanbase.spark.HBaseRelation.$anonfun$insert$1$adapted(HBaseRelation.scala:63)
	at org.apache.spark.rdd.RDD.$anonfun$foreachPartition$2(RDD.scala:1020)
	at org.apache.spark.rdd.RDD.$anonfun$foreachPartition$2$adapted(RDD.scala:1020)
	at org.apache.spark.SparkContext.$anonfun$runJob$5(SparkContext.scala:2264)
	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
	at org.apache.spark.scheduler.Task.run(Task.scala:131)
	at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:506)
	at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1491)
	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:509)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.RuntimeException: Unexpected version format: 11.0.22
	at org.apache.hadoop.hbase.util.ClassSize.<clinit>(ClassSize.java:119)
	... 20 more

Environment

  • obkv-hbase-client-java-0.1.5

Fast reproduce steps

Use this library on Java 11 and above.

Expected behavior

No response

Actual behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions