rocksdb icon indicating copy to clipboard operation
rocksdb copied to clipboard

Add support for Wide columns in Java

Open rhubner opened this issue 1 year ago • 4 comments

This PR adds support for wide columns in Java. First implementation is primarily focused on correctness rather than performance. We would like to merge this first and hear feedback from RocksDB Java community before refining it.

Fix #12113

rhubner avatar Feb 07 '24 14:02 rhubner

Hello, after I finished compiling, the run encountered the following error: librocksdbjni-osx-x86_64.jnilib was not found inside JAR. My machine environment is macbook air 2022,The compiled command is as follows: make clean jclean DEBUG_LEVEL=0 make -j12 rocksdbjava

test-wangxiaoyu avatar Mar 27 '24 01:03 test-wangxiaoyu

Hello @test-wangxiaoyu

librocksdbjni-osx-x86_64.jnilib was not found inside JAR.

This is a very strange error. Considering you have a macbook air 2022, these models have ARM CPU ( Mac computers with Apple silicon ) and Java is trying to search for Intel version of native library. My suggestion is to check that you are running native ARM version of Java. Sometimes also called aarch64. From the error message it looks like you are running Intel version of Java via Rosetta emulation layer. You can download correct version from Adoptium project or Liberica

You can also check what native library is inside the jar archive. For example this is how it looks like on my linux machine.

$ jar -t --file java/target/rocksdbjni-9.2.0-linux64.jar | grep librocksdbjni
librocksdbjni-linux64.so

Radek

rhubner avatar Mar 27 '24 15:03 rhubner

@pdillinger @ajkr Can we get this one merged please?

adamretter avatar Jul 02 '24 12:07 adamretter