Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.5.0
-
None
-
None
-
Windows 11, Java 11
Description
Apache Storm 2.5.0 upgraded rocksdbjni to 8.1.1 as part of STORM-3913 which does not include the native library for Windows. See below link
https://github.com/facebook/rocksdb/issues/11420
The LocalCluster initialization fails with the following error on Windows
Caused by: java.lang.ExceptionInInitializerError at org.apache.storm.metricstore.rocksdb.RocksDbStore.prepare(RocksDbStore.java:67) at org.apache.storm.metricstore.MetricStoreConfig.configure(MetricStoreConfig.java:34) at org.apache.storm.daemon.nimbus.Nimbus.<init>(Nimbus.java:542) at org.apache.storm.LocalCluster.<init>(LocalCluster.java:245) at org.apache.storm.LocalCluster.<init>(LocalCluster.java:160) at com.example.test.LocalTestCluster.<init>(LocalTestCluster.java:23) at com.example.test.ExampleTestDriver.<init>(ExampleTestDriver.java:73) at com.example.test.ExampleTest.<init>(ExampleTest.java:38) ... 28 more Caused by: java.lang.RuntimeException: librocksdbjni-win64.dll was not found inside JAR. at org.rocksdb.NativeLibraryLoader.loadLibraryFromJarToTemp(NativeLibraryLoader.java:118) at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:102) at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:82) at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:70) at org.rocksdb.RocksDB.<clinit>(RocksDB.java:39) ... 37 more
The latest version of rockdbjni (8.5.4) includes the missing library.