alluxio icon indicating copy to clipboard operation
alluxio copied to clipboard

Kubernetes deployment error: Could not initialize class alluxio.conf.PropertyKey

Open sadatnfs opened this issue 2 years ago • 5 comments

Alluxio Version: 2.9.3 and master branch

Describe the bug Master process doesn't start with this error: Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class alluxio.conf.PropertyKey at alluxio.ProcessUtils.fatalError(ProcessUtils.java:116) at alluxio.master.AlluxioMaster.main(AlluxioMaster.java:47)

To Reproduce Deploy master stateful set YAML on Kubernetes, or even deploy the Helm chart

I suspect there's some configuration or environment variable I'll need to set for my pods. Any help would be appreciated

sadatnfs avatar Apr 21 '24 05:04 sadatnfs

I guess you did not set properties in values.yaml

# Site properties for all Alluxio components
properties:

jasondrogba avatar Apr 22 '24 04:04 jasondrogba

I only set the ufs properties. Do you know which ones I gotta set for kubernetes?

sadatnfs avatar Apr 22 '24 06:04 sadatnfs

How did you deploy the cluster? Did you obtain the Alluxio Docker image from official, or did you compile and build it yourself?

jasondrogba avatar Apr 23 '24 06:04 jasondrogba

@jasondrogba i compiled Alluxio myself with Maven calls, because the existing binaries have CVEs that we can't use with work. And then put it in our Docker image

sadatnfs avatar Apr 23 '24 12:04 sadatnfs

@sadatnfs It could be an issue generated by your compilation of Alluxio. Have you deployed and used it on a physical machine after compiling? Because the error you reported doesn't seem to be caused by Docker, and it's rarely encountered, I suspect it might be a problem with your Maven compilation. You could try compiling it and testing it on a machine to confirm if the issue persists. Alternatively, you could review if any changes have been made to the code.

jasondrogba avatar Apr 24 '24 01:04 jasondrogba