AnsweredAssumed Answered

Drill JDBC - NoClassDefFoundError: hadoop/conf/Configuration

Question asked by john.humphreys on Jan 23, 2018
Latest reply on Jan 24, 2018 by maprcommunity

I'm trying to connect to Drill (1.10) from DB Visualizer.  I know I had done this successfully with drill 1.6 in the past.

 

I'm confident the connection string hasn't changed, and I've loaded and am using the correct 1.10 driver JAR.

 

I'm getting this error:  "Caused by: java.lang.Exception: java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration" - full stack trace below.

 

Any ideas about what could be wrong?  For reference, the JAR I loaded is drill-jdbc-all-1.10.0.jar from a MapR node with drill installed.

 

An error occurred while establishing the connection:

Details:
   Type: java.lang.reflect.UndeclaredThrowableException

Stack Trace:
java.lang.reflect.UndeclaredThrowableException
   at com.sun.proxy.$Proxy1.connect(Unknown Source)
   at com.onseven.dbvis.db.I.H.ň(Z:2841)
   at com.onseven.dbvis.db.I.H.ij(Z:676)
   at com.onseven.dbvis.db.I.K.ij(Z:235)
   at com.onseven.dbvis.db.I.D.ġ(Z:1756)
   at com.onseven.dbvis.K.B._.Ĝ(Z:2717)
   at com.onseven.dbvis.K.B.L.Ă(Z:1374)
   at com.onseven.dbvis.K.B.L.doInBackground(Z:1521)
   at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at javax.swing.SwingWorker.run(SwingWorker.java:334)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
   at com.onseven.dbvis.g.B.F$A.call(Z:2374)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   ... 3 more
Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
   at oadd.org.apache.drill.exec.rpc.security.plain.PlainFactory.createAndLoginUser(PlainFactory.java:61)
   at oadd.org.apache.drill.exec.rpc.user.UserClient.authenticate(UserClient.java:219)
   at oadd.org.apache.drill.exec.rpc.user.UserClient.connect(UserClient.java:155)
   at oadd.org.apache.drill.exec.client.DrillClient.connect(DrillClient.java:432)
   at oadd.org.apache.drill.exec.client.DrillClient.connect(DrillClient.java:379)
   at org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:157)
   at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:72)
   at org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:69)
   at oadd.org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:143)
   at org.apache.drill.jdbc.Driver.connect(Driver.java:72)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at com.onseven.dbvis.g.B.D.ā(Z:1548)
   at com.onseven.dbvis.g.B.F$A.call(Z:1369)
   ... 4 more

Outcomes