AnsweredAssumed Answered

Drill and Zeppelin on a Secure Cluster

Question asked by darren.skinner on Jun 15, 2017
Latest reply on Jun 20, 2017 by maprcommunity

Hi,

 

I'm trying to configure Zeppelin to connect to Drill (1.10) on a MapR 5.2 cluster configured as a secure cluster.

 

I'm getting the following error when attempting to run a count(*) querty against a valid table:

 

java.sql.SQLException: Failure in connecting to Drill: oadd.org.apache.drill.exec.rpc.NonTransientRpcException: javax.security.sasl.SaslException: Authentication failed unexpectedly. [Caused by java.util.concurrent.ExecutionException: javax.security.sasl.SaslException: Failed to login. [Caused by javax.security.auth.login.LoginException: No LoginModules configured for hadoop_simple]]
at org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:166)
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 java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
at org.apache.commons.dbcp2.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:79)
at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:205)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
at org.apache.commons.dbcp2.PoolingDriver.connect(PoolingDriver.java:129)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:270)
at org.apache.zeppelin.jdbc.JDBCInterpreter.getConnectionFromPool(JDBCInterpreter.java:354)
at org.apache.zeppelin.jdbc.JDBCInterpreter.getConnection(JDBCInterpreter.java:372)
at org.apache.zeppelin.jdbc.JDBCInterpreter.executeSql(JDBCInterpreter.java:565)
at org.apache.zeppelin.jdbc.JDBCInterpreter.interpret(JDBCInterpreter.java:692)
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:97)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:498)
at org.apache.zeppelin.scheduler.Job.run(Job.java:175)
at org.apache.zeppelin.scheduler.ParallelScheduler$JobRunner.run(ParallelScheduler.java:162)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
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: oadd.org.apache.drill.exec.rpc.NonTransientRpcException: javax.security.sasl.SaslException: Authentication failed unexpectedly. [Caused by java.util.concurrent.ExecutionException: javax.security.sasl.SaslException: Failed to login. [Caused by javax.security.auth.login.LoginException: No LoginModules configured for hadoop_simple]]
at oadd.org.apache.drill.exec.rpc.user.UserClient.connect(UserClient.java:157)
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)
... 29 more
Caused by: javax.security.sasl.SaslException: Authentication failed unexpectedly. [Caused by java.util.concurrent.ExecutionException: javax.security.sasl.SaslException: Failed to login. [Caused by javax.security.auth.login.LoginException: No LoginModules configured for hadoop_simple]]
at oadd.org.apache.drill.exec.rpc.user.UserClient$3.mapException(UserClient.java:207)
at oadd.org.apache.drill.exec.rpc.user.UserClient$3.mapException(UserClient.java:197)
at oadd.com.google.common.util.concurrent.AbstractCheckedFuture.checkedGet(AbstractCheckedFuture.java:85)
at oadd.org.apache.drill.exec.rpc.user.UserClient.connect(UserClient.java:155)
... 32 more
Caused by: java.util.concurrent.ExecutionException: javax.security.sasl.SaslException: Failed to login. [Caused by javax.security.auth.login.LoginException: No LoginModules configured for hadoop_simple]
at oadd.com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
at oadd.com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
at oadd.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
at oadd.com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63)
at oadd.com.google.common.util.concurrent.AbstractCheckedFuture.checkedGet(AbstractCheckedFuture.java:78)
... 33 more
Caused by: javax.security.sasl.SaslException: Failed to login. [Caused by javax.security.auth.login.LoginException: No LoginModules configured for hadoop_simple]
at oadd.org.apache.drill.exec.rpc.security.plain.PlainFactory.createAndLoginUser(PlainFactory.java:70)
at oadd.org.apache.drill.exec.rpc.user.UserClient.authenticate(UserClient.java:219)
... 33 more
Caused by: javax.security.auth.login.LoginException: No LoginModules configured for hadoop_simple
at javax.security.auth.login.LoginContext.init(LoginContext.java:264)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:381)
at org.apache.hadoop.security.UserGroupInformation.newLoginContext(UserGroupInformation.java:462)
at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:723)
at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:688)
at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:572)
at oadd.org.apache.drill.exec.rpc.security.plain.PlainFactory.createAndLoginUser(PlainFactory.java:65)
... 34 more

Outcomes