leroyj commented on issue #12166:
URL: https://github.com/apache/pulsar/issues/12166#issuecomment-969302860


   It probably comes from RocksDB jni lib that is compiled for Intel 
architecture but not for M1.
   I have the following message when I try to start Pulsar standalone manually 
   ```
   [...]
   18:06:01.614 [main] ERROR org.apache.pulsar.PulsarStandaloneStarter - Failed 
to start pulsar service.
   java.io.IOException: Failed to load RocksDB JNI library
        at 
org.apache.bookkeeper.bookie.storage.ldb.KeyValueStorageRocksDB.<init>(KeyValueStorageRocksDB.java:97)
 ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
   [...]
   Caused by: java.lang.UnsatisfiedLinkError: 
/private/var/folders/lg/rlmz38310975xp7d3_q1bq280000gn/T/librocksdbjni853977630215260542.jnilib:
 
dlopen(/private/var/folders/lg/rlmz38310975xp7d3_q1bq280000gn/T/librocksdbjni853977630215260542.jnilib,
 0x0001): tried: 
'/private/var/folders/lg/rlmz38310975xp7d3_q1bq280000gn/T/librocksdbjni853977630215260542.jnilib'
 (mach-o file, but is an incompatible architecture (have 'x86_64', need 
'arm64e')), '/usr/local/lib/librocksdbjni853977630215260542.jnilib' (no such 
file), '/usr/lib/librocksdbjni853977630215260542.jnilib' (no such file)
   ```
   There's an open issue 
([facebook/rocksdb#7720](https://github.com/facebook/rocksdb/issues/7720#issuecomment-864585111))
 in RocksDB that @jurmous helps to fix by building a universal version of the 
lib.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to