java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy

Hi,

I’m getting this error while accessing any vds/pds, this started happening post a Dremio restart, can someone help me understand what is going wrong with my Dremio deployment.

Dremio Version: 13.1.0-202102110202430875-3e6f3e7c

Error from logs:

2021-11-18 04:17:41,966 [1e6a2c1b-0bc8-aaaf-a5df-ce359e562300:execution-planning] ERROR c.d.s.commandpool.CommandWrapper - command 1e6a2c1b-0bc8-aaaf-a5df-ce359e562300:execution-planning failed
java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
at org.xerial.snappy.SnappyOutputStream.<init>(SnappyOutputStream.java:97)
at org.xerial.snappy.SnappyOutputStream.<init>(SnappyOutputStream.java:89)
at org.xerial.snappy.SnappyOutputStream.<init>(SnappyOutputStream.java:79)
at com.dremio.exec.planner.PhysicalPlanReader$1.compress(PhysicalPlanReader.java:174)
at com.dremio.common.serde.ProtobufByteStringSerDe.writeValue(ProtobufByteStringSerDe.java:88)
at com.dremio.exec.planner.PhysicalPlanReader.writeValueAsByteString(PhysicalPlanReader.java:168)
at com.dremio.exec.planner.PhysicalPlanReader.writeJsonBytes(PhysicalPlanReader.java:160)
at com.dremio.exec.planner.fragment.SimpleParallelizer.generateWorkUnit(SimpleParallelizer.java:573)
at com.dremio.exec.planner.fragment.SimpleParallelizer.generateWorkUnit(SimpleParallelizer.java:477)
at com.dremio.exec.planner.fragment.SimpleParallelizer.getFragments(SimpleParallelizer.java:278)
at com.dremio.exec.maestro.planner.ExecutionPlanCreator.getExecutionPlan(ExecutionPlanCreator.java:116)
at com.dremio.exec.maestro.QueryTrackerImpl.planExecution(QueryTrackerImpl.java:122)
at com.dremio.exec.maestro.MaestroServiceImpl.lambda$executeQuery$2(MaestroServiceImpl.java:166)
at com.dremio.service.commandpool.CommandWrapper.run(CommandWrapper.java:62)
at com.dremio.context.RequestContext.run(RequestContext.java:95)
at com.dremio.common.concurrent.ContextMigratingExecutorService.lambda$decorate$3(ContextMigratingExecutorService.java:199)
at com.dremio.common.concurrent.ContextMigratingExecutorService$ComparableRunnable.run(ContextMigratingExecutorService.java:180)
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)

Thanks,
Teja

@aida_teja Do you have any additional jars under your <DREMIO_HOME>/jars folder?

No @balaji.ramaswamy, i don’t see any additional jar files apart from what comes by default.

Update: we took a backup and reinstalled dremio which fixed it.

Thanks for the update @aida_teja