Failed to use RocksDB in Kubernetes
See original GitHub issueAlluxio Version:
2.1.0-SNAPSHOT
Describe the bug
Change HEAP
to ROCKSDB
in the Kubernetes cluster. I’m able to see the erros:
2019-08-21 12:07:57,238 ERROR AlluxioMaster - Fatal error: Failed to create master process
java.lang.RuntimeException: java.lang.RuntimeException: Failed to start masters
at alluxio.master.AlluxioMasterProcess.<init>(AlluxioMasterProcess.java:121)
at alluxio.master.AlluxioMasterProcess$Factory.create(AlluxioMasterProcess.java:389)
at alluxio.master.AlluxioMaster.main(AlluxioMaster.java:45)
Caused by: java.lang.RuntimeException: Failed to start masters
at alluxio.master.MasterUtils.createMasters(MasterUtils.java:57)
at alluxio.master.AlluxioMasterProcess.<init>(AlluxioMasterProcess.java:119)
... 2 more
Caused by: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: /tmp/librocksdbjni8198214604534869932.so: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /tmp/librocksdbjni8198214604534869932.so)
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at alluxio.util.CommonUtils.invokeAll(CommonUtils.java:529)
at alluxio.master.MasterUtils.createMasters(MasterUtils.java:55)
... 3 more
Caused by: java.lang.UnsatisfiedLinkError: /tmp/librocksdbjni8198214604534869932.so: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /tmp/librocksdbjni8198214604534869932.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78)
at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56)
at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:64)
at org.rocksdb.RocksDB.<clinit>(RocksDB.java:35)
at alluxio.master.metastore.rocks.RocksBlockStore.<init>(RocksBlockStore.java:68)
at alluxio.master.MasterUtils.lambda$getBlockStoreFactory$1(MasterUtils.java:72)
at alluxio.master.block.DefaultBlockMaster.<init>(DefaultBlockMaster.java:252)
at alluxio.master.block.DefaultBlockMaster.<init>(DefaultBlockMaster.java:235)
at alluxio.master.block.BlockMasterFactory.create(BlockMasterFactory.java:51)
at alluxio.master.block.BlockMasterFactory.create(BlockMasterFactory.java:28)
at alluxio.master.MasterUtils.lambda$createMasters$0(MasterUtils.java:49)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
To Reproduce Steps to reproduce the behavior (as minimally and precisely as possible)
Expected behavior A clear and concise description of what you expected to happen.
Urgency Describe the impact and urgency of the bug.
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Error using rocksdb as the storage engine with Kubernetes #40
Deploying arangodb on kubernetes using the following deployment config file: apiVersion: v1 kind: Service metadata: name: arangodb-agents ...
Read more >Kubernetes+RocksDB+local storage | Facebook
Kubernetes+RocksDB+local storage I have the following setup: One node ... 2) Docker image with RocksDB... ... GET and PUT operations fails with Seg...
Read more >Kubernetes Example Not Working As Expected - General
We are using GKE zonal-ssd for the storage class. The cluster starts up fine and we are able to see the UI, everything...
Read more >docker - How to handle flink management and k8s management
Saying that I use K8s to manager dockers and deploy the TaskManager into the dockers. As my understanding, a docker can be restarted...
Read more >Kubernetes+RocksDB+local storage - Google Groups
I have the following setup: One node with 1) Golang app using read only RocksDB. 2) Docker image with RocksDB mounted to host...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
And I find that adding
export LD_LIBRARY_PATH=/lib64:$LD_LIBRARY_PATH
can fix this issue.For example:
I think it’s better fix this in Dockerfile.
/assign @madanadit