MapR - Drill does not start after enabling kerberos - Fails with exception [ YouShouldntSeeThisErrorUnlessYourJVMhadoop.loginPropertiesAreBad ]
This kind of exception messages probably if you could see when your Drillbit does not start after enabling kerberos authentication by following this article.
From drillbit.out file
Caused by: java.io.IOException: Login failure for mapr/my52cluster@SATZ.COM from keytab /opt/mapr/conf/mapr.keytab: javax.security.auth.log
in.LoginException: unable to find LoginModule class: YouShouldntSeeThisErrorUnlessYourJVMhadoop.loginPropertiesAreBad
at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:907)
at org.apache.drill.exec.server.BootStrapContext.login(BootStrapContext.java:145)
... 5 more
Caused by: javax.security.auth.login.LoginException: unable to find LoginModule class: YouShouldntSeeThisErrorUnlessYourJVMhadoop.loginProp
ertiesAreBad
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:794)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:897)
... 6 more
From drillbit.log file
It just hangs with below messages
2017-11-13 10:24:04,518 [main] WARN org.apache.drill.common.KerberosUtil - Converting service name (myClusterName) to lowercase, see HADOOP-7988.
Resolution
It happens generally because of incorrect login module configuration / missing configuration
Correct the drill-env.sh under [ /opt/mapr/drill/drill-<version>/conf] as below (if not add the below line in that file)
export DRILL_JAVA_OPTS="$DRILL_JAVA_OPTS -Dmapr_sec_enabled=true -Dhadoop.login=hybrid -Dzookeeper.saslprovider=com.mapr.security.maprsasl.
MaprSaslProvider -Dmapr.library.flatclass"
Also note that MapR drill works only with drill-1.10 and above.
From drillbit.out file
Caused by: java.io.IOException: Login failure for mapr/my52cluster@SATZ.COM from keytab /opt/mapr/conf/mapr.keytab: javax.security.auth.log
in.LoginException: unable to find LoginModule class: YouShouldntSeeThisErrorUnlessYourJVMhadoop.loginPropertiesAreBad
at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:907)
at org.apache.drill.exec.server.BootStrapContext.login(BootStrapContext.java:145)
... 5 more
Caused by: javax.security.auth.login.LoginException: unable to find LoginModule class: YouShouldntSeeThisErrorUnlessYourJVMhadoop.loginProp
ertiesAreBad
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:794)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:897)
... 6 more
From drillbit.log file
It just hangs with below messages
2017-11-13 10:24:04,518 [main] WARN org.apache.drill.common.KerberosUtil - Converting service name (myClusterName) to lowercase, see HADOOP-7988.
Resolution
It happens generally because of incorrect login module configuration / missing configuration
Correct the drill-env.sh under [ /opt/mapr/drill/drill-<version>/conf] as below (if not add the below line in that file)
export DRILL_JAVA_OPTS="$DRILL_JAVA_OPTS -Dmapr_sec_enabled=true -Dhadoop.login=hybrid -Dzookeeper.saslprovider=com.mapr.security.maprsasl.
MaprSaslProvider -Dmapr.library.flatclass"
Also note that MapR drill works only with drill-1.10 and above.
Comments
Post a Comment