java.lang.NoClassDefFoundError: Could not initialize class com.dremio.exec.work.foreman.AttemptManager

Hi, I installed dremio-community-4.1.4 jar and copied dremio-jdbc-driver-4.1.4-202001240912140359-a90eb503.jar into jars folder, started with dremio start, then accessed the web interface: http://localhost:9047/, then clicked on add new source, then select Sample source, a new Samples source create, then select the Sample source, click on samples.dremio.com, then selected zip_lookup.csv file, then a list of data shown up, then clicked save button, there is error message from server.log:

ERROR c.d.s.commandpool.CommandWrapper - command 21bd142a-8938-ad35-1de0-0fd9b57dd900:job-submission failed

java.lang.IncompatibleClassChangeError: null

at com.codahale.metrics.MetricRegistry.registerAll(MetricRegistry.java:512) ~[metrics-core-4.1.0.jar:4.1.0]

at com.codahale.metrics.MetricRegistry.registerAll(MetricRegistry.java:110) ~[metrics-core-4.1.0.jar:4.1.0]

at com.dremio.telemetry.api.metrics.Metrics.newTopReporter(Metrics.java:256) ~[dremio-services-telemetry-api-4.1.4-202001240912140359-a90eb503.jar:4.1.4-202001240912140359-a90eb503]

at com.dremio.exec.work.foreman.AttemptManager.(AttemptManager.java:96) ~[dremio-sabot-kernel-4.1.4-202001240912140359-a90eb503.jar:4.1.4-202001240912140359-a90eb503]

at com.dremio.exec.work.protector.Foreman.newAttemptManager(Foreman.java:207) ~[dremio-sabot-kernel-4.1.4-202001240912140359-a90eb503.jar:4.1.4-202001240912140359-a90eb503]

at com.dremio.exec.work.protector.Foreman.newAttempt(Foreman.java:191) ~[dremio-sabot-kernel-4.1.4-202001240912140359-a90eb503.jar:4.1.4-202001240912140359-a90eb503]

at com.dremio.exec.work.protector.Foreman.start(Foreman.java:150) ~[dremio-sabot-kernel-4.1.4-202001240912140359-a90eb503.jar:4.1.4-202001240912140359-a90eb503]

at com.dremio.exec.work.protector.ForemenWorkManager.submit(ForemenWorkManager.java:212) ~[dremio-sabot-kernel-4.1.4-202001240912140359-a90eb503.jar:4.1.4-202001240912140359-a90eb503]

at com.dremio.exec.work.protector.ForemenWorkManager$LocalQueryExecutorImpl.submitLocalQuery(ForemenWorkManager.java:548) ~[dremio-sabot-kernel-4.1.4-202001240912140359-a90eb503.jar:4.1.4-202001240912140359-a90eb503]

at com.dremio.service.jobs.LocalJobsService.startJob(LocalJobsService.java:490) ~[dremio-services-jobs-4.1.4-202001240912140359-a90eb503.jar:4.1.4-202001240912140359-a90eb503]

at com.dremio.service.jobs.LocalJobsService.lambda$submitJob$1(LocalJobsService.java:534) ~[dremio-services-jobs-4.1.4-202001240912140359-a90eb503.jar:4.1.4-202001240912140359-a90eb503]

at com.dremio.service.commandpool.CommandWrapper.run(CommandWrapper.java:62) ~[dremio-services-commandpool-4.1.4-202001240912140359-a90eb503.jar:4.1.4-202001240912140359-a90eb503]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_181]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_181]

at java.lang.Thread.run(Thread.java:748) [na:1.8.0_181]

@idoor88

Why did you have to copy the jdbc jar to the jars folder. Are you using the same host as a JDBC client, then you have to copy the JDBC jar to the client application’s library or jars folder, like for example if you want to use DBeaver then follow JDBC using DBeaver

Thanks
Bali

Thanks for your response, you are right, I described wrong, I copied the dremio jdbc jar file to the apache Drill jars/3rdparty folder and jdbc-driver folder, since the drill is the client to access dremio. for some reason, I re-installed the dremio and this error disappeared, but there is a table not found error, I started with a new topic for this error.

Thanks