question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to use RocksDB in Kubernetes

See original GitHub issue

Alluxio 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:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cheyangcommented, Aug 22, 2019

And I find that adding export LD_LIBRARY_PATH=/lib64:$LD_LIBRARY_PATH can fix this issue.

For example:

docker run -d   -p 19999:19999 --user root   --net=alluxio_nw   \
--name=alluxio-master   --hostname=alluxio-master \
-e LD_LIBRARY_PATH=/lib64/ \
 -e ALLUXIO_JAVA_OPTS="-Dalluxio.master.hostname=alluxio-master -Dalluxio.master.metastore=ROCKS "  \
 -v journal:/opt/alluxio/journal   \
-v ufs:/opt/alluxio/underFSStorage  \
 alluxio/alluxio:2.1.0-SNAPSHOT master

I think it’s better fix this in Dockerfile.

0reactions
cheyangcommented, Aug 22, 2019

/assign @madanadit

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found